-->
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.  [ 2 posts ] 
Author Message
 Post subject: UserType
PostPosted: Mon Sep 22, 2003 9:11 am 
Newbie

Joined: Wed Sep 17, 2003 6:34 am
Posts: 3
Hello,

I am kind of new to Hibernate.
I have a class ShipData with such fields:private String name_;

private ContactInfo contact_;
private String registerNumber_;
private String imoNumber_;
private String flag_;
private DateRange classPeriod_;
private String id_;
private Owner owner_;

The classes Owner, ContactInfo and DateRange have just java basic type fields. They do not have matching tables in database, even ShipData does not have(The Db tables are already there, and not allowed to change, java classes are designed accordingly). For mapping of Owner.class , I created OwnerType implementing UserType interface. ContactInfo and DateRange have also respective classes extending UserType interface. So, my real question is that, having those classes already which implemented UserType class, I don't want to list all the column names in ShipDataType(implementing UserType). I want to somehow reuse the already created UserType classes, how can I do this?

I hope my problem is obvious enough.

Thanks
Sunay


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 22, 2003 10:11 am 
Newbie

Joined: Wed Sep 17, 2003 6:34 am
Posts: 3
I found out a way to solve the problem. So,I dont have the problem any more:)


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.