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
|
|