-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: O/R mapping stratagy questions
PostPosted: Thu Aug 02, 2007 3:14 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.