Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Embeddable attributes are ignored by the generator #143

Merged
merged 6 commits into from
Dec 13, 2023

Conversation

hugothomas
Copy link
Contributor

Hi,

I have following related tables:

@Entity
public class Product {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Access(value = AccessType.PROPERTY)
  private long id = 0;

  @Embedded private Tracking tracking;

  private String barcode;
  
  ....
}

@Embeddable
public class Tracking {
  @ManyToOne(fetch = FetchType.LAZY)
  private User modifier;

  @ManyToOne(fetch = FetchType.LAZY)
  private User creator;
}

GeneratedEntityGraph does not contains tracking relation.

With this pull request spring-data-jpa-entity-graph will be able to generate it.

@hugothomas hugothomas marked this pull request as draft December 13, 2023 13:54
@hugothomas hugothomas marked this pull request as ready for review December 13, 2023 14:22
@reda-alaoui reda-alaoui changed the title @Embeddable / @Embedded handling support @Embeddable attributes are ignored by the generator Dec 13, 2023
@reda-alaoui reda-alaoui merged commit ed691e3 into master Dec 13, 2023
1 check passed
@reda-alaoui reda-alaoui deleted the enable_composer_for_embeddable branch December 13, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants