• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Hibernate: Integration problems

 
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 ]
 
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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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.
 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic