-->
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.  [ 6 posts ] 
Author Message
 Post subject: specifying userdefined type using annotations
PostPosted: Wed Mar 23, 2005 10:11 am 
Newbie

Joined: Fri Mar 18, 2005 7:58 am
Posts: 8
Hi
I want to implement a user defined datatype in hibernate 3 using annotations.In hibernate 2 we had to implement the interface UserType to acheive this.
How can i achive this using annotations?The Column or Id annotation does not have a type member where i can specify the user defined type.

Can anyone help me in this regard??

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 5:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
In CVS, you have @Type

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 1:21 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
It is available in relaese also 3.0alpha3

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 5:22 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No It will be in the next release (already in CVS)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 5:31 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
emmanuel wrote:
No It will be in the next release (already in CVS)


See changlog-

Code:
Hibernate Annotations Changelog
===============================

3.0alpha3 (28-02-2005)
----------------------
* HBX-116 Support for Where clause in classes and collections @Where(clause="")
* HBX-115 Support for class proxying configuration: @Proxy(lazy=false, proxyClassName="my.Interface")
* HBX-88 Support for hibernate type abstraction through @Type (only on basic properties for now)
* HBX-108 Support @BatchSize(size=n) for entities and collections
* HBX-107 implements @org.hibernate.annotations.Entity
* HBX-103 handle abstract classes
* HBX-83 precision & scale support for column (Bogdan Ghidireac)


HBX-88

I am using it for last 1 month.

Code:
@Type (type="foo.bar.Clazz")

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 5:51 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm faster than I supposed ;-)

_________________
Emmanuel


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