Skip to content

Commit

Permalink
Fix for TAP5-2783 (NPE on init of the HibernateModule when entities w…
Browse files Browse the repository at this point in the history
…ith compound ids are used)
  • Loading branch information
HendrikNXS committed Jul 9, 2024
1 parent 2635be9 commit 0cf1402
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0cf1402

Please sign in to comment.