-->
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.  [ 1 post ] 
Author Message
 Post subject: Generate custom subclasses
PostPosted: Sun May 20, 2007 6:48 am 
Newbie

Joined: Fri Sep 15, 2006 2:09 am
Posts: 11
Hi.

Is it somehow possible to achieve the following?

- Generate my domain objects from .hbm files (that works so far).
- Generate an empty custom subclass that can be enhanced by additional methods/fields that won't be persisted.

Currently I've mapped my domain objects like domain.Person in the hbm files.

To achieve the 2nd step I would have to map it like domain.BasePerson and let an empty subclass be generated as domain.Person.

I also thought about using the meta tag "class-code" to add additional methods to the class. But that feels "strange" to me writing java code in hbm files :).

So, what's the best practice to achieve the custom-subclass approach?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.