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

Q: JPA layer - is there might be a need to use @OneToMany, @ManyToOne, @ManyToMany? #123

Open
asn25 opened this issue Sep 22, 2020 · 0 comments

Comments

@asn25
Copy link

asn25 commented Sep 22, 2020

Hi Chris,

I'm checking JPA layer of FTGO application.
Could you please help me to clarify information on that.
In a number of previously seen applications I've encountered intensive usage of @onetomany, @manytoone, @manytomany (also with some following troubles and JPA Exceptions with Cascading problems on saving, especially for @manytomany).

In FTGO there are only:

Questions are:

  1. Why there is this difference in annotation usage? Maybe, because @OneToMany/@ManyToOne/@manytomany are used on related Entities - and in FTGO there is a concept of Aggregate introduced (central Entity with surrounding Value objects)?
  2. Is it possible situation in FTGO when you have to use @OneToMany/@ManyToOne/@manytomany as well? Or FTGO JPA layer can live and work with @Embedded annotation only?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant