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

ManyToMany Association + Repository #103

Closed
HannahJSwystun opened this issue May 21, 2020 · 2 comments
Closed

ManyToMany Association + Repository #103

HannahJSwystun opened this issue May 21, 2020 · 2 comments

Comments

@HannahJSwystun
Copy link

Hello,

Would you like please to show us how to add a ManyToMany association in Ebean 4.0.0 ++ with repository (Update / Delete) ?

This is an example of my model :


@Entity 
public class Sysuser extends BaseModel {
        
   @Constraints.Required
    public String username;
	
    @ManyToMany(cascade=CascadeType.ALL)
    public List<Role> roles;

Thank you in advance

@ignasi35
Copy link
Member

Hi @HannahJSwystun,

this is an issue tracker. If you are looking for help, I suggest you ask in our discourse community. See for example this similar topic: https://discuss.lightbend.com/t/looking-for-sample-with-manytomany-repository-completion-stage/6532

Cheers,

@HannahJSwystun
Copy link
Author

Hello,

I've been looking so long of an example that cover @manytomany in Repository but i did not find!!

@ennru ennru removed the triage label Nov 24, 2021
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

3 participants