File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Hibernate: Integration problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Hibernate: Integration problems" Watch "Hibernate: Integration problems" New topic
Author

Hibernate: Integration problems

Arun G Nair
Greenhorn

Joined: Nov 18, 2008
Posts: 6
Hai, I am now working on a project in Struts + Hibernate. This is the first time I am working in hibernate. The project have different modules and my database contains 42 tables. So I am little confused on the integeration of the project. Because, for each table I need to create seperate "hbm.xml" files.

For my case let say, have two modules...
1. vendor
2. tender

So the person working on vendor needs to put a "many to one" in a particular "hbm.xml" file that Correspond to a table in my database, in which another person want to put another "many to one". So I think in cases like this there may arise integration problem... So during integration we need to manually put all the changes that all the developers had ever made to that particular "hbm.xml" file. How can we tackle this kind of problems.

Some one please give me a solution

Thank You
[ November 20, 2008: Message edited by: Arun G Nair ]
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Hi Arun,

It seems version control problem to me. IMHO, it has to be decided prior
to development what kinda relationship could be there required. I mean the
design time decisions.

A developer making changes in the existing mapping file should have latest
mapping file so that the final version will be upto date for everyone.


Because, for each table I need to create seperate "hbm.xml" files.


I prefer annotated POJO classes instead of dozens of mapping files.


cmbhatt
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yup. You need a version control system. Not really a Hibernate issue, so i'll move this somewhere more appropriate and hopefully people will make suggestions.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate: Integration problems