[hibernate/hibernate-orm] 596deb: make @Check work when applied at the field level
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 596debed4d301de84a207f2d0fa7fda9043908cb
https://github.com/hibernate/hibernate-orm/commit/596debed4d301de84a207f2...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/schema/CheckTest.java
M hibernate-core/src/main/java/org/hibernate/annotations/Check.java
M hibernate-core/src/main/java/org/hibernate/annotations/ForeignKey.java
M hibernate-core/src/main/java/org/hibernate/annotations/Index.java
M hibernate-core/src/main/java/org/hibernate/annotations/Table.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedJoinColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java
Log Message:
-----------
make @Check work when applied at the field level
This was a bug!
Also add checkConstraint member to @Table to allow check constraints on secondary tables
Also clean up some Javadoc of some related annotations
2 years, 11 months
[hibernate/hibernate-orm] bd8bf1: fix some warnings in IntelliJ (unnecessary StringB...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: bd8bf15e00a52623103c8f87f5b71a418add2fbf
https://github.com/hibernate/hibernate-orm/commit/bd8bf15e00a52623103c8f8...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-09 (Sun, 09 Jan 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedDiscriminatorColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedJoinColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/BinderHelper.java
M hibernate-core/src/main/java/org/hibernate/cfg/CollectionSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/DefaultComponentSafeNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/ImprovedNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/PersistenceStandardNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/PropertyInferredData.java
Log Message:
-----------
fix some warnings in IntelliJ (unnecessary StringBuilder)
2 years, 11 months
[hibernate/hibernate-orm] 432450: allow @Comment to apply at the class level
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 4324509a59c0f8e4e6e16eee8c154f302826bd88
https://github.com/hibernate/hibernate-orm/commit/4324509a59c0f8e4e6e16ee...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-09 (Sun, 09 Jan 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/Comment.java
M hibernate-core/src/main/java/org/hibernate/annotations/Table.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/ColumnsBuilder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/comment/CommentTest.java
Log Message:
-----------
allow @Comment to apply at the class level
yes, you can do it with the @Table annotation but this is nicer,
no good reason to not allow it
2 years, 11 months