When i go in new or edit mode of a row of <main> how can i prevent possibility of add a new item detail ??
I want only to choose one detail item from a list ...
Thanks !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
i've a main table with a mapping of a detail table ...
@ManyToOne(fetch=FetchType.LAZY, optional=false)
@JoinColumn(name="id_detail")
private Detail detail;
When i go in new or edit mode of a row of <main> how can i prevent possibility of add a new item detail ??
I want only to choose one detail item from a list ...
Thanks !
i've resolved ... simply insert:
@NoCreate @NoModify
@ManyToOne(fetch=FetchType.LAZY, optional=false)
@JoinColumn(name="id_detail")
private Detail detail;