Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit a63a2e2

Browse files
committed
avoid a duplicate validation hibernate error specifying size of a field on
SOFTWARE_TYPE
1 parent 88ff06a commit a63a2e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/gov/osti/entity/DOECodeMetadata.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ public boolean hasSetReleaseDate() {
717717
* @return the type the SOFTWARE TYPE
718718
*/
719719
@Basic (optional = false)
720-
@Column (name = "SOFTWARE_TYPE", length = 1)
720+
@Valid
721+
@Column (name = "SOFTWARE_TYPE")
721722
@Enumerated (EnumType.STRING)
722723
public Type getSoftwareType() {
723724
return softwareType;

0 commit comments

Comments
 (0)