| Issue 30: | getCollectionX() association should verify field annotations too.. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
this query:
EntradaDirecta e = alias(EntradaDirecta.class, "e");
DetalleEntradaDirecta det = alias(e.getDetalles(), "det");
select(e).from(EntradaDirecta.class).as(e).innerJoin(e.getDetalles()).as(det).where(conditions)
throw this exception:
java.lang.IllegalStateException: Not a persistent collection getter (does
not bear OneToMany/ManyToMany) : public java.util.List
net.compulago.almacen.model.EntradaDirecta.getDetalles()
at
com.google.code.liquidform.internal.PropertyAccessRecordingInvocationHandler.collectionElementType(PropertyAccessRecordingInvocationHandler.java:97)
at
com.google.code.liquidform.internal.PropertyAccessRecordingInvocationHandler.intercept(PropertyAccessRecordingInvocationHandler.java:59)
at
net.compulago.almacen.model.EntradaDirecta$$EnhancerByCGLIB$$f4b842a8.getDetalles(<generated>)
I think this is because my JPA annotations for relations @OneToMany
@ManyToOne, etc, are in the fields not in getter methods.
Dec 16, 2008
thanks..
Dec 26, 2008
(No comment was entered for this change.)
Status:
Fixed
|
Owner: eric.bottard
Labels: Milestone-Release1.0