Title / Description
Code @Entity @NoArgsConstructor @RequiredArgsConstructor public class Application { @Id @GeneratedValue @Getter @Setter @Column(name = "application_id") private Long id; @NonNull @Getter @Setter @Column(name = "application_name", unique = true) private String name; @Getter @Setter @OrderColumn @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "Application_Tools", joinColumns = @JoinColumn(name = "application_id"), inverseJoinColumns = @JoinColumn(name = "tool_id"), uniqueConstraints = @UniqueConstraint(columnNames = { "application_id", "tool_id" })) private List<Tool> tools = new ArrayList<Tool>(); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code