-->
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: Abstract class mapping strategy
PostPosted: Sun Feb 26, 2006 7:50 am 
Beginner
Beginner

Joined: Fri Feb 24, 2006 12:52 pm
Posts: 30
What is the baet way to map the POJO's below to hibernate?
HBM example will make me happy!
Thanks
Avishay
Code:
public class  A
{
   B b;
}

public abstract B
{
   // methods and members here
}

public B1 extends B
{
    // one implementation
}

public B2 extends B
{
    // second implementation
}

_________________
Avishay Balderman


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 12:02 pm 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
Okay so you want to map an association and a class hierarchy ...
What do you think is best : an example written by some guy on a forum or Hibernate documentation ? This is Hibernate 101 so you will find your answer in the docs. Then if you have issues come back here and we will be pleased to help you.


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.