I have a class
public class Part{
private Integer id;
private String name;
private Bar bar;
getters/setters
}
I have a mapping for part and for there part I am adding aliases for column
names after join.
I am sure it is not correct way to do it. Please advice how to do
So only way is to do with aliases?
No way I can reuse the already mapped dto other then remap it?
Ingmar Lötzsch wrote:
I have a class
public class Part{
private Integer id;
private String name;
private Bar bar;
getters/setters
}
I have a mapping for part and for there
So only way is to do with aliases?
No way I can reuse the already mapped dto other then remap it?
You can use the select attribute instead of resultMap. You can combine
this with lazy loading.
Ingmar