Skip to content

Commit

Permalink
Update hibernate-core/src/main/java/org/hibernate/query/hql/internal/…
Browse files Browse the repository at this point in the history
…SemanticQueryBuilder.java


I think a type description like `com.excemple.A` would be clearer than just
showing `A`, especially if there are classes with duplicate names, and
would make it easier to find problematic classes more quickly.

Co-authored-by: Gavin King <gavin@hibernate.org>
  • Loading branch information
FULaBUla and gavinking committed Apr 13, 2024
1 parent 1f8af8c commit 9231611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ public SqmDynamicInstantiation<?> visitInstantiation(HqlParser.InstantiationCont
if ( !dynamicInstantiation.checkInstantiation( creationContext.getTypeConfiguration() ) ) {
final Class<?> type = dynamicInstantiation.getJavaType();
if ( dynamicInstantiation.isFullyAliased() ) {
throw new SemanticException("Missing constructor or attributes for injection into type '" + type + "'" +
throw new SemanticException("Missing constructor or attributes for injection into type '" + type.getSimpleName() + "'" +
"Expected arguments are: " + dynamicInstantiation.argumentTypes(), query);
}
else {
Expand Down

0 comments on commit 9231611

Please sign in to comment.