diff --git a/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/web/modules/HibernateModule.java b/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/web/modules/HibernateModule.java index 0fa210926..8ca7403bc 100644 --- a/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/web/modules/HibernateModule.java +++ b/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/web/modules/HibernateModule.java @@ -102,7 +102,7 @@ public static void contributeValueEncoderSource( for (EntityType entityType : entities) { Class entityClass = entityType.getJavaType(); - if (entityClass != null) + if (entityClass != null && entityType.hasSingleIdAttribute()) { SingularAttribute id = entityType.getId(entityType.getIdType().getJavaType()); final String idenfierPropertyName = id.getName();