Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Aggregated objects cannot be written/deleted/queried independently from their owners(Aggregated objects cannot be written/deleted/queried independently from their owners)
Aggregated objects cannot be written/deleted/queried independently from their owners [message #1184168] Wed, 13 November 2013 09:07
Sergi Arrufat is currently offline Sergi Arrufat
Messages: 1
Registered: November 2013
Location: Barcelona
Junior Member
A query of empty collection comparison (IS EMPTY) on a collection annotated with "ElementCollection" of an embeddable class produces the following exception:


Aggregated objects cannot be written/deleted/queried independently from their owners.
Descriptor: [RelationalDescriptor(es.tecsidel.sega.common.model.Horario --> [])]
Query: ReportQuery(referenceClass=Horario )
at org.eclipse.persistence.exceptions.QueryException.aggregateObjectCannotBeDeletedOrWritten(QueryException.java:249)
at org.eclipse.persistence.queries.ReportQuery.prepareSubSelect(ReportQuery.java:1224)
at org.eclipse.persistence.internal.expressions.SubSelectExpression.normalizeSubSelect(SubSelectExpression.java:198)
at org.eclipse.persistence.internal.expressions.ExpressionNormalizer.normalizeSubSelects(ExpressionNormalizer.java:114)
at org.eclipse.persistence.internal.expressions.SQLSelectStatement.normalize(SQLSelectStatement.java:1534)
Previous Topic:[MOXy] NoClassDefFoundError within OSGi
Next Topic:Convert ?=call storedproc(?,?,?) to JPA
Goto Forum:
  


Current Time: Wed Sep 17 07:42:42 GMT 2014

Powered by FUDForum. Page generated in 0.01687 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software