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: Annotations and specific property accessor
PostPosted: Tue Jun 23, 2009 11:20 am 
Beginner
Beginner

Joined: Sat Jan 05, 2008 7:33 am
Posts: 26
Hello

going further in my migration from .hbm.xml files to annotations I could not find anything regarding how to implement a
property sepcific accessor using annotations. Looked in both annotations documentations, source code, forums and even
books I have which talk about hibernate

One of my class has a field called uri which was defined as follows:

<property name="uri" column="uri" type="string" access="org.hibernate.property.URIAccessor"/>

org.hibernate.property.URIAccessor is part of my java code as
public class URIAccessor implements PropertyAccessor {
...
}
and works well.
How can I map this using annotations

thanks for any pointer


Top
 Profile  
 
 Post subject: Re: Annotations and specific property accessor
PostPosted: Tue Jun 23, 2009 11:25 am 
Beginner
Beginner

Joined: Sat Jan 05, 2008 7:33 am
Posts: 26
forgot to specify that the java type of this field is java.net.URI


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.