-->
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: No visibility in UserType
PostPosted: Mon Jun 09, 2008 4:49 am 
Newbie

Joined: Thu Jan 04, 2007 4:40 am
Posts: 9
Hibernate version: 3.2.6.ga

Hi,

I have a class which implements "UserType". My problem is that it extends "org.apache.commons.lang.enums.ValuedEnum" class too and so I cannot define a empty constructor like this:

public MyClass() { }

to permit Hibernate to instance this class and so I get:

Caused by: org.hibernate.MappingException: Cannot instantiate custom type: org.test.MyClass

Have you any idea how to solve this problem?

Thanks,
rand


Top
 Profile  
 
 Post subject: Userype
PostPosted: Fri Jun 20, 2008 3:44 am 
Newbie

Joined: Fri Jun 20, 2008 3:39 am
Posts: 1
UserType loads/stores your class (from/to DB) that extends org.apache.commons.lang.enums.ValuedEnum via nullSafeGet and nullSafeSet. The UserType is not your domain or field class, just a mediator.


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.