Joined: Wed Jun 15, 2005 1:55 am Posts: 4 Location: Sydney,Australia
|
I need to map the follow class arrangement.
class A
{
String name;
B [] b;
};
class B
{
String stuff;
C [] c;
}
class C
{
String moreStuff
Integer [] x;
}
I would expect to have tables something like:
A
-
id
name
B
-
id
stuff
index
C
-
id
index
index2
morestuff
CX
-----
id
index
index2
index3
x
Arrays can be replaced by List or what ever.
I wish to load/save/delete as a whole the high level object (ie A).
I would like to do this using xdoclet 1.2.x.
Can hibernate nest composition like this?
Can any one provide me with the mapping details.
[b]Hibernate version:3.0x[/b]
|
|