-->
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.  [ 3 posts ] 
Author Message
 Post subject: custom types without implementing UserType ?
PostPosted: Thu Jun 17, 2004 1:36 am 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
Is there a way of persisting/materializing custom types that don't implement UserType? I have an existing domain model with 1. type safe enums and 2. beans with final fields that I'd like to use with Hibernate but without directly coupling the domain model to Hibernate classes. Thanks,

perhaps something like:

Code:
public interface Persister;

Hibernate.registerPersister( Persister p, Class legacyType );


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 17, 2004 3:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
A UserType is a seperate type from the class it persists. Your property class does NOT have to implement UserType.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 4:58 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
thanks, I'll go back and read the doc, i guess I was confused the first time


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.