Answer the question
In order to leave comments, you need to log in
Hibernate how to get two objects from same table?
The database looks something like this:
объект поле_а поле_б поле_ц
------------------------------------
объект1 а1 б1 ц1
объект1 а1 б1 ц2
объект1 а1 б1 ц3
объект2 а2 б2 ц4
объект2 а2 б2 ц5
.................
public class ObjectC {
private int fieldC;
}
public class MyObject{
private String objName;
private int fieldA;
private int fieldB;
private List<ObjectC> fieldC;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question