Bug 73 : PersistenceException throw when query master detail... with concatinated keys
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
1.0.3
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
17/02/2009
Updated 
17/02/2009
Type 
Bug
 
Attachments 
No attachments

Exception in thread "main" javax.persistence.PersistenceException: Could not find id for extra join?
at com.avaje.ebean.server.query.SqlTreeBuilder$IncludesDistiller.createJoinLeaf(SqlTreeBuilder.java:491)
at com.avaje.ebean.server.query.SqlTreeBuilder$IncludesDistiller.createExtraJoin(SqlTreeBuilder.java:469)

 
Rob 17 Feb 08:49
Fixed in v1.0.3

The fix is to the SqlTreeBuilder$IncludesDistiller.createJoinLeaf() method... to ignore extra joins that are not found... in that they are likely to be embedded beans (in this case the concatinated @EmbeddedId bean).

Fixed in v1.0.3.

woResponse

Upload a file