-->
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 map this class structure?
PostPosted: Fri Oct 31, 2003 4:48 am 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
I have to map some classes written by other programmers.
They don't want their code to be modified because of hibenate.
This is the core code.

public abstract class Base {
int iNumbers;
String sName;

//getter and setter for properties
}

public class Detail extends Base {
byte[] details;

//getter and setter for properties
}

I don't think hibernate could mapping this class structure.
For there is an abstract base class.and the subclass still don't
have a ID property. How can I do to save this classes. Thanks!!!!


cowrie


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 5:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
What is the primry key of that class hierarchy ?
iNumbers, sName, both ?

_________________
Emmanuel


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.