Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Getter
@Setter
@Immutable
@Entity(name = "oa_genre")
public class OaGenreEntity {
@Id
@GeneratedValue
private Long id;
@Column(name = "path")
private String path;
@Column(name = "name")
private String name;
@OneToMany(fetch = FetchType.LAZY)
@JoinColumn(name = "oa_genre_id")
@OrderBy("display_order")
private Set<OaGroup> openGroups;
@OneToMany(fetch = FetchType.LAZY)
@JoinColumn(name = "genre_id")
private List<CampaignMissionFollowGenreEntity> missionFollowGenres;
}
@Getter
@Setter
@Immutable
@Entity(name = "oa_group")
public class OaGroup {
@Id
@GeneratedValue
private Long id;
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "oa_id")
@Where(clause = "status = true")
private OaEntity oaEntityList;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.