Skip to content

Commit

Permalink
Fix: Remove @embeddable from classes already annotated with @entity
Browse files Browse the repository at this point in the history
Removed @embeddable annotations from classes that were also annotated with @entity.
This resolves conflicts introduced by Hibernate's stricter validation, which disallows
a class from being both an entity (standalone table) and an embeddable (part of another entity).

The change aligns with JPA specifications and ensures compatibility with recent Hibernate versions
(e.g., stricter validation as per HHH-18172).
  • Loading branch information
iyt-trifork committed Nov 27, 2024
1 parent e182694 commit 942edaf
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

import java.io.Serializable;

@Embeddable
@Entity
@Table(
name = "HFJ_HISTORY_TAG",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.annotations.GenericGenerator;

@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import java.text.SimpleDateFormat;
import java.util.Date;

@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import java.math.BigDecimal;
import java.util.Objects;

@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import static org.apache.commons.lang3.StringUtils.isBlank;

// @formatter:off
@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import static org.apache.commons.lang3.StringUtils.isBlank;

// @formatter:off
@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import static org.apache.commons.lang3.StringUtils.defaultString;

// @formatter:off
@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import static org.apache.commons.lang3.StringUtils.defaultString;
import static org.apache.commons.lang3.StringUtils.trim;

@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import static ca.uhn.fhir.jpa.model.util.SearchParamHash.hashSearchParam;
import static org.apache.commons.lang3.StringUtils.defaultString;

@Embeddable
@EntityListeners(IndexStorageOptimizationListener.class)
@Entity
@Table(
Expand Down

0 comments on commit 942edaf

Please sign in to comment.