• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate: Integration problems

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic