• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: Integration problems

 
Arun G Nair
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic