Joined: Fri Jun 17, 2005 4:46 am Posts: 2
|
Hi,
I am using
[a]Hibernate version: 4.0
[b]Name and version of the database you are using: db2 on os400 v5r2
We have designed a database scheme as well as a proper Java object model. We are also using middlegen to generate the mapping files and a layer of value objects which are a naked wrapper around the db. Now the issue is how do we go about mapping db to our java model. Should we generate the mapping file and modify it arrive at the desired class structure. OR do we let the VO layer remain as it and call them from our Java model by keeping these as references. The benefit of the second approach seems to be that at the time of regeneration there is minimum impact on generated xml and vo files. But it does result in an extra layer of objects. Is there any other approach we shoudl take? Please suggest. We do not have time to handcode the xml for our object model given the timeline for our project.
Satyan
|
|