org.hibernate.MappingException

unknown property: city

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web360

  • via Hibernate JIRA by Andrey Panasyuk, 1 year ago
    unknown property: city
  • via Hibernate JIRA by Andrey Panasyuk, 1 year ago
    unknown property: city
  • property mapping has wrong number of columns: id.co.bippo.schema.inventorybalance._1.GoodsShipment.customerAddress type: component[city,country,countryCode,description,emails,homePhones,mobiles,organization,phones,postalCode,primary,primaryBilling,primaryEmail,primaryHomePhone,primaryMobile,primaryPhone,primaryShipping,primaryWorkPhone,province,street,validationTime,workPhones]
  • Stack trace

    • org.hibernate.MappingException: unknown property: city at org.hibernate.persister.entity.AbstractPropertyMapping.getColumnNames(AbstractPropertyMapping.java:89) at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyColumnNames(AbstractEntityPersister.java:1982) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.Neo4jPropertyHelper.getColumnName(Neo4jPropertyHelper.java:84) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.Neo4jPropertyHelper.getColumnName(Neo4jPropertyHelper.java:75) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.predicate.impl.Neo4jPredicateFactory.columnName(Neo4jPredicateFactory.java:109) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.predicate.impl.Neo4jPredicateFactory.getComparisonPredicate(Neo4jPredicateFactory.java:49) at org.hibernate.hql.ast.spi.SingleEntityQueryBuilder.addComparisonPredicate(SingleEntityQueryBuilder.java:87) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.Neo4jQueryRendererDelegate.addComparisonPredicate(Neo4jQueryRendererDelegate.java:185) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.Neo4jQueryRendererDelegate.predicateEquals(Neo4jQueryRendererDelegate.java:163) at org.hibernate.hql.ast.render.QueryRenderer.predicate(QueryRenderer.java:5197) at org.hibernate.hql.ast.render.QueryRenderer.searchCondition(QueryRenderer.java:4871) at org.hibernate.hql.ast.render.QueryRenderer.whereClause(QueryRenderer.java:2347) at org.hibernate.hql.ast.render.QueryRenderer.querySpec(QueryRenderer.java:2202) at org.hibernate.hql.ast.render.QueryRenderer.queryExpression(QueryRenderer.java:2105) at org.hibernate.hql.ast.render.QueryRenderer.queryStatement(QueryRenderer.java:1744) at org.hibernate.hql.ast.render.QueryRenderer.queryStatementSet(QueryRenderer.java:1657) at org.hibernate.hql.ast.render.QueryRenderer.statement(QueryRenderer.java:653) at org.hibernate.hql.ast.spi.QueryRendererProcessor.process(QueryRendererProcessor.java:51) at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82) at org.hibernate.ogm.datastore.neo4j.query.parsing.impl.Neo4jBasedQueryParserService.parseQuery(Neo4jBasedQueryParserService.java:40) at org.hibernate.ogm.query.impl.OgmQueryTranslator.getLoader(OgmQueryTranslator.java:131) at org.hibernate.ogm.query.impl.OgmQueryTranslator.doCompile(OgmQueryTranslator.java:120) at org.hibernate.ogm.query.impl.LegacyParserBridgeQueryTranslator.compile(LegacyParserBridgeQueryTranslator.java:55) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:131) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:93) at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:167) at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301) at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236) at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1800) at org.hibernate.engine.spi.SessionDelegatorBaseImpl.createQuery(SessionDelegatorBaseImpl.java:401) at org.hibernate.ogm.jpa.impl.OgmEntityManager.createQuery(OgmEntityManager.java:209) at by.defascathibernate.ogm.test.BasicTest.lambda$test5FindJPQL$0(BasicTest.java:67)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.