Timeline for Hibernate query composite key
Current License: CC BY-SA 3.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 29, 2012 at 15:14 | answer | added | buritos | timeline score: 2 | |
| Feb 28, 2012 at 16:55 | comment | added | Perception |
This is not a composite key query, you are searching by an attribute in your composite key. Please confirm this is what you are trying to accomplish. In any case your current query is incorrect assuming you want to pass a list of attributes. Use this instead - from IfasvVendor t0 where t0.ifasvVendorPK.peId in :idList and query.setParameter("idList", list).
|
|
| Feb 28, 2012 at 16:49 | history | asked | Code Junkie | CC BY-SA 3.0 |