-->
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: How to get Class name instead of generated-class
PostPosted: Wed Dec 20, 2006 1:58 pm 
Newbie

Joined: Wed Dec 20, 2006 1:39 pm
Posts: 2
3.2:

**hbm.xml:


I have a following mapping file

<hibernate-mapping default-lazy="false">
<class name="com.xyz.Event">
<meta attribute="generated-class" inherit="false">com.xyz.generated.EventGen</meta>
.
.

Is there any way I can get Class name (not the generated-class) from POJOClass interface? I am using underlying Cfg2JavaTool to get the POJOClass and I need to get the name of the impl class in this case "com.xyz.Event" instead of "com.xyz.generated.EventGen" which is returned by pojo.getDeclarationName().

Any hints/info/tricks/solution will be appreciated.

Thanks,

Sean


Top
 Profile  
 
 Post subject: Was able to get Class name only
PostPosted: Thu Dec 21, 2006 4:12 am 
Newbie

Joined: Wed Dec 20, 2006 1:39 pm
Posts: 2
I am using following in my code generation Velocity Template $pojo.getDecoratedObject().getEntityName()


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.