mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 10:03:59 +00:00
Merge pull request #3011 from ebean-orm/feature/improve-error-message-no-join-columns
Improve the error message "No join columns found" to include the relationship
This commit is contained in:
@@ -932,7 +932,7 @@ public final class BeanDescriptorManager implements BeanDescriptorMap, SpiBeanTy
|
||||
// define the TableJoin
|
||||
DeployTableJoin oneToManyJoin = oneToMany.getTableJoin();
|
||||
if (!oneToManyJoin.hasJoinColumns()) {
|
||||
throw new RuntimeException("No join columns");
|
||||
throw new RuntimeException("No join columns found to satisfy the relationship " + oneToMany);
|
||||
}
|
||||
createUnidirectional(targetDesc, owningType, beanTable, oneToManyJoin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user