-->
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: Mapping of Object.attribute to any db Field
PostPosted: Fri Mar 12, 2004 3:05 am 
Beginner
Beginner

Joined: Thu Feb 26, 2004 6:59 am
Posts: 47
Location: Gurgaon, India
I have a data object as follow:

CatalogEntry {
EntitId id ;
String name
}

The EntityId is a separate class and i have used the long number returned by this class as my catalog entry id that is stored in database as catalog_id and is of type long.

Now how can I map this EntityId.number attribute with catalog.catalog_id field in database. Currently, I did a workaround by maintaining another field of long type in catalogEntry Data Object and I am manipulating this field in setters, or can achieve this using interceptors also.

But is there any direct way to fulfill this kind of requirement?

Thanks,

_________________
Mohit Gupta
Software Engineer
Gurgaon, India


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.