-->
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: hbm2java and self proxying classes
PostPosted: Mon Nov 22, 2004 12:49 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 9:48 am
Posts: 23
Guys,

I have a class defined that begins:
Code:
<class name="Something"
      table="SOMETHING"      lazy="true"
      discriminator-value="SMTH" proxy="Something">


Because I use lazy initialization and this class is part of a polymorphic association, I need a proxy. Stating the proxy as the class name is valid, according to the docs.

However, hbm2java sees this and generates:

Code:
class Something implements Something, Serializable


which is obviously wrong.

Is there any way to prevent hbm2java from doing this?

Thanks,
Jbwiv


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 4:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - that should work - can you show the mapping ?

Besides proxy=sameclassname is now out of date, just use lazy="true" instead.

_________________
Max
Don't forget to rate


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.