mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 12:44:49 +00:00
Throw IllegalArgumentException when cannot resolve attribute names
This commit is contained in:
parent
bb05cdadc6
commit
1e973a0b55
@ -144,9 +144,11 @@ public SqmPath<?> get(String attributeName) {
|
||||
|
||||
if ( subNavigable == null ) {
|
||||
throw new IllegalArgumentException(
|
||||
String.format(
|
||||
"Could not resolve attribute '%s' of '%s'",
|
||||
attributeName, getNavigablePath()
|
||||
new SemanticException(
|
||||
String.format(
|
||||
"Could not resolve attribute '%s' of '%s'",
|
||||
attributeName, getNavigablePath()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user