-->
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: TypeDef works well for @Entity classes, not @Embedded
PostPosted: Mon Apr 06, 2009 5:30 pm 
Regular
Regular

Joined: Wed Jun 30, 2004 4:02 pm
Posts: 64
TypeDef Documentation:

http://www.hibernate.org/hib_docs/annot ... e/#d0e2282

@TypeDefs({
@TypeDef(
name = "status",
typeClass = EnumUserType.class,
parameters = {@Parameter(name = "enumClass", value = "com.triview.common.model.Status")}
)
})

I declare various @TypeDefs such as this. They all work fine when used in @Entity classes. When used in a @MappedSuperclass, or an @Embeddable, they fail.

I see from the docs that these are global and double checked that I do not have any duplicate @TypeDef definitions.

Has anyone used these in MappedSuperClass or Embedded successfully?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 09, 2009 3:44 pm 
Regular
Regular

Joined: Wed Jun 30, 2004 4:02 pm
Posts: 64
I believe this to be a bug, but I'd like to see if anyone else has had any success or failure trying to use TypeDef in Embedded or MappedSuperclass classes.

Has anyone else tried this mapping case?


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.