Skip to content

Commit

Permalink
add comment() to @DiscriminatorColumn
Browse files Browse the repository at this point in the history
we missed this one in 3.2
  • Loading branch information
gavinking committed Dec 11, 2024
1 parent 1aac75c commit f1b2f8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,12 @@
* Ignored for other discriminator types.
*/
int length() default 31;

/**
* (Optional) A comment to be applied to the column.
* This is only used if table generation is in effect.
*
* @since 4.0
*/
String comment() default "";
}
7 changes: 7 additions & 0 deletions spec/src/main/asciidoc/ch11-metadata-for-or-mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,7 @@ public @interface DiscriminatorColumn {
String columnDefinition() default "";
String options() default "";
int length() default 31;
String comment() default "";
}
----

Expand Down Expand Up @@ -1403,6 +1404,12 @@ the specified discriminator type.
|(Optional) The column length for
String-based discriminator types. Ignored for other discriminator types.
|31

|String
|comment
|(Optional) Comment for the column. This is
only used if table generation is in effect.
|No comment
|===

*Example:*
Expand Down

0 comments on commit f1b2f8d

Please sign in to comment.