Joined: Thu Aug 02, 2007 2:45 pm Posts: 2 Location: MA-USA
|
Hi,
I am newbie to Hibernate. I have been working on a prototype using Spring-Hibernate to replace in-house built data access layer. I am working with existing table and objects and would like to minimize changes. I have a couple of difficulties described below with O/R mapping.
1. We have been using an Identifier object that wraps Long as an id column of the entity. What is the best way to map Identifier to a integer column?
2. We aso have been converting some of the database fields. For example we store date as an integer in the database but need to be represented as date in the Entity. boolean true/false to int 0/1 is another such example. What is the best way around this situation?
Software versions
JDK 1.5
Spring 2.0.6
Hibernate 3.2
_________________ Jiggy
|
|