Skip to content

Commit f17dcb0

Browse files
committed
improve readability of an error message
1 parent 792f6d5 commit f17dcb0

File tree

1 file changed

+2
-4
lines changed
  • hibernate-core/src/main/java/org/hibernate/boot/model/relational

1 file changed

+2
-4
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/relational/Sequence.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ public void validate(int initialValue, int incrementSize) {
9393
if ( this.initialValue != initialValue ) {
9494
throw new HibernateException(
9595
String.format(
96-
"Multiple references to database sequence [%s] were encountered attempting to " +
97-
"set conflicting values for 'initial value'. Found [%s] and [%s]",
96+
"Multiple generators using the database sequence '%s' are defined, with conflicting 'initialValue' specifications: %s, %s",
9897
exportIdentifier,
9998
this.initialValue,
10099
initialValue
@@ -104,8 +103,7 @@ public void validate(int initialValue, int incrementSize) {
104103
if ( this.incrementSize != incrementSize ) {
105104
throw new HibernateException(
106105
String.format(
107-
"Multiple references to database sequence [%s] were encountered attempting to " +
108-
"set conflicting values for 'increment size'. Found [%s] and [%s]",
106+
"Multiple generators using the database sequence '%s' are defined, with conflicting 'allocationSize' specifications: %s, %s",
109107
exportIdentifier,
110108
this.incrementSize,
111109
incrementSize

0 commit comments

Comments
 (0)