-->
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: Question: Implementing an interface
PostPosted: Thu Jul 29, 2004 12:44 am 
Beginner
Beginner

Joined: Wed Oct 01, 2003 3:35 pm
Posts: 35
Is there a way in the mapping document to declare that a give class implements an interface? Basically, a subset of my classes have common attributes that a I have captured in an interface for common handling on save/updates.

I am using the hbm2java tool to generate my classes, but each time I need to re-generate the classes, I have to hand modify my classes to add back the "implements MyInterface"

One thing I just realized is that I could use aspectj to introduce this interface on my classes and get the same behavior, but I would like to avoid that if possible.

Any hints would be appreciated.


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