net.sf.hibernate.QueryException: could not resolve property: id of: example.AttackDetails [select count(ad) from example.PlayerInGame defender join defender.attackDetails ad where ad.attacker = :attacker and defender = :defender]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
could not resolve property: id of: example.AttackDetails [select count(ad) from example.PlayerInGame defender join defender.attackDetails ad where ad.attacker = :attacker and defender = :defender]
via Hibernate JIRA by Matt Read, 1 year ago
could not resolve property: id of: gatt.example.AssociationForA [select count(assoc) from gatt.example.EntityA entityA join entityA.association assoc]
via Hibernate JIRA by Matt Read, 1 year ago
could not resolve property: id of: gatt.example.AssociationForA [select count(assoc) from gatt.example.EntityA entityA join entityA.association assoc]
via Coderanch by Jignesh Patel, 11 months ago
could not resolve property: reloctionRequests of: com.toshiba.phoenix.relocation.domainmodel.RelocationAssets [SELECT relocatio nAssets from com.toshiba.phoenix.relocation.domainmodel.RelocationAssets as relo cationAssets,com.toshiba.phoenix.relocation.domainmodel.RelocationRequests as re loctionRequests where relocationAssets.reloctionRequests.relocationRequestKey=:r elocationRequestKey]
via Atlassian JIRA by James Dumay [Atlassian], 1 year ago
could not resolve property: commits of: com.atlassian.bamboo.resultsummary.AbstractResultsSummary
via Atlassian JIRA by James Dumay [Atlassian], 1 year ago
could not resolve property: commits of: com.atlassian.bamboo.resultsummary.AbstractResultsSummary
net.sf.hibernate.QueryException: could not resolve property: id of: example.AttackDetails [select count(ad) from example.PlayerInGame defender join defender.attackDetails ad where ad.attacker = :attacker and defender = :defender]
at net.sf.hibernate.persister.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:35)
at net.sf.hibernate.collection.AbstractCollectionPersister.toType(AbstractCollectionPersister.java:701)
at net.sf.hibernate.hql.PathExpressionParser.getPropertyType(PathExpressionParser.java:242)
at net.sf.hibernate.hql.PathExpressionParser.end(PathExpressionParser.java:281)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.SelectParser.token(SelectParser.java:140)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.ClauseParser.end(ClauseParser.java:114)
at net.sf.hibernate.hql.PreprocessingParser.end(PreprocessingParser.java:143)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:151)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:140)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:291)
at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1501)
at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1531)
at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:33)
at example.PlayerInGame.getNumAttacksOn(PlayerInGame.java:459)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.