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: Multiple identifiers type, in one common superclass handling
PostPosted: Tue Apr 12, 2005 9:17 am 
Newbie

Joined: Thu May 20, 2004 5:40 pm
Posts: 10
Location: Rio de Janeiro - Brazil
Hello,
i'm currently developing an application which my model has diferent kinds of id's (primary key), such as java.lang.Long, java.lang.String, and composite-key classes.

But i have an superclass of all the entities, called BaseEntity, and in this class i have a getId and setId, but having the id's of diferent types, do not allow me to use this superclass, specially in case of composite-key classes, because i'm using XDoclet2, and it assumes the method's returning type the class type of the composite-key, and in the case of my superclass BaseEntity, the returning type of the getId, is a Serializable.

Is there any patter to lead to this specific case?

Regards.


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.