Skip to content

Instantly share code, notes, and snippets.

@szmeku
Created June 10, 2014 22:58
Show Gist options
  • Save szmeku/5305e73a820bbc7372ae to your computer and use it in GitHub Desktop.
Save szmeku/5305e73a820bbc7372ae to your computer and use it in GitHub Desktop.
...
@ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY)
@JoinTable(name="TestAndTestAspect",
joinColumns={@JoinColumn(name="testId")},
inverseJoinColumns={@JoinColumn(name="testAspectId")})
private Set<TestAspectEntity> testAspects = new HashSet<TestAspectEntity>();
public Set<TestAspectEntity> getTestAspects() {
return testAspects;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment