| Author |
Hibernate bidirectional manyToOne: How to get Index easily.
|
Manuel Petermann
Ranch Hand
Joined: Jul 19, 2011
Posts: 175
|
|
Hello again.
Lets say we got a customer with orders attached to it.
So is there an easier way than doing:
in an instance of Order. Because that seems to be a little too excessive.
All I want is the index in the array.
Thanks.
|
Please correct my English.
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3670
|
|
|
If you frequently need this then it might better to have a method for just that?
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
Manuel Petermann
Ranch Hand
Joined: Jul 19, 2011
Posts: 175
|
|
|
Of course, but I thought that it might be possible to map this value to an int in the right entity.
|
 |
 |
|
|
subject: Hibernate bidirectional manyToOne: How to get Index easily.
|
|
|