-->
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: Custom objectid class
PostPosted: Thu Sep 01, 2005 4:05 pm 
Newbie

Joined: Thu Sep 01, 2005 3:55 pm
Posts: 11
Hi everyone,

I am creating mapping files for an existing object model. The id's for the persistent class are custom classes, not primitives. So for example, the order class might look like this:

class Order
{
public InstanceID ID
{ get ... set ...}

public DateTime OrderDate
{get ... set...}
}

where InstanceID is our custom object id class that would map to an Integer column in the tblOrders table. What would the mapping file for this class look like?

Thanks,

_________________
~Dave Foderick


Top
 Profile  
 
 Post subject: composite-id
PostPosted: Tue Sep 06, 2005 6:10 pm 
Newbie

Joined: Thu Sep 01, 2005 3:55 pm
Posts: 11
FWIW, I got it to work with <composite-id>

_________________
~Dave Foderick


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