Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jpa default value enum

@Column(length = 32, columnDefinition = "varchar(32) default 'UNKNOWN'")
@Enumerated(value = EnumType.STRING)
private CommunicationStatus emailCommunicationStatus = CommunicationStatus.UNKNOWN;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jpa #default #enum
ADD COMMENT
Topic
Name
2+6 =