Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add comment() to @DiscriminatorColumn #689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading