- fix too-long identifier for Oracle

This commit is contained in:
Steve Ebersole 2022-01-06 06:21:01 -06:00
parent bcb1577b43
commit 0b96d8fca7
1 changed files with 4 additions and 0 deletions

View File

@ -11,13 +11,16 @@ import java.util.List;
import org.hibernate.annotations.CollectionSemantics;
import jakarta.persistence.Basic;
import jakarta.persistence.CollectionTable;
import jakarta.persistence.ElementCollection;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
/**
* @author Steve Ebersole
*/
@Table(name = "unique_list_owners")
//tag::collections-custom-semantics-ex[]
@Entity
public class TheEntityWithUniqueList {
@ -27,6 +30,7 @@ public class TheEntityWithUniqueList {
@Basic
private String name;
@CollectionTable(name = "unique_list_contents")
//tag::collections-custom-semantics-ex[]
@ElementCollection
@CollectionSemantics(UniqueListSemantic.class)