- This topic has 1 reply, 2 voices, and was last updated 18 years ago by
Loyal Water.
-
AuthorPosts
-
Peter L. BergholdMemberHi folks,
There is something that Eclipse has “hinted at to me” about being able to do but I’m missing something in the execution. I’ve come up with a workaround but it isn’t all that acceptable a workaround for me.
I’ve grown very fond of using MyEclipseIDE to develop Hibernate based “infrastructures” to access data in various databases. I develop web applications around these and then when I need to develop another application against the same database I end up copying the file tree from one project to another and going from there.
What I really want to be able to do is develop my persistance layer as a seperate project and then reference that project from other projects. Optionally I’d love to be able to have that persistance layer get targetted to a jar file. When I make changes to the persistance layer the referencing projects would then “do the right thing” with appropriate recompiles as necessary.
Then when I deploy the web projects the persistance layer should go with them as appropriate.
At least that’s my vision.
Now, when I look at the Eclipse IDE I can see that there is provision for one project to reference another. Yet when I try and invoke that feature and a compile is necessary it fails to see the classes that were defined in the referenced project.
What am I missing here?
June 14, 2007 at 11:29 am #271517
Loyal WaterMemberHi Peter,
Like Eclipse had hinted to you, you can create a separate project with you persistance layer code and then add it as a dependency to your web projects by going to Project > Properties > Project References and checking you persistance layer project. When you deploy you web app, the Persistance Layer project will get deployed along with the web project just the way you want. -
AuthorPosts