- fix too-long identifier for Oracle
This commit is contained in:
parent
bcb1577b43
commit
0b96d8fca7
|
@ -11,13 +11,16 @@ import java.util.List;
|
||||||
import org.hibernate.annotations.CollectionSemantics;
|
import org.hibernate.annotations.CollectionSemantics;
|
||||||
|
|
||||||
import jakarta.persistence.Basic;
|
import jakarta.persistence.Basic;
|
||||||
|
import jakarta.persistence.CollectionTable;
|
||||||
import jakarta.persistence.ElementCollection;
|
import jakarta.persistence.ElementCollection;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.Table;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
|
@Table(name = "unique_list_owners")
|
||||||
//tag::collections-custom-semantics-ex[]
|
//tag::collections-custom-semantics-ex[]
|
||||||
@Entity
|
@Entity
|
||||||
public class TheEntityWithUniqueList {
|
public class TheEntityWithUniqueList {
|
||||||
|
@ -27,6 +30,7 @@ public class TheEntityWithUniqueList {
|
||||||
@Basic
|
@Basic
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
@CollectionTable(name = "unique_list_contents")
|
||||||
//tag::collections-custom-semantics-ex[]
|
//tag::collections-custom-semantics-ex[]
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
@CollectionSemantics(UniqueListSemantic.class)
|
@CollectionSemantics(UniqueListSemantic.class)
|
||||||
|
|
Loading…
Reference in New Issue