Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.domain.core;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.FetchType;
- import javax.persistence.GeneratedValue;
- import static javax.persistence.GenerationType.IDENTITY;
- import javax.persistence.Id;
- import javax.persistence.JoinColumn;
- import javax.persistence.ManyToOne;
- import javax.persistence.Table;
- @Entity
- @Table(name = "CoreNavigationMenu", catalog = "instance_core")
- public class CoreNavigationMenu implements java.io.Serializable {
- private static final long serialVersionUID = -1221380078004211748L;
- private Integer menuId;
- private CoreNavigation coreNavigation;
- private String stackView;
- private String stackClass;
- private boolean isAdmin;
- public CoreNavigationMenu() {
- }
- public CoreNavigationMenu(CoreNavigation coreNavigation, String stackView,
- String stackClass, boolean isAdmin) {
- this.coreNavigation = coreNavigation;
- this.stackView = stackView;
- this.stackClass = stackClass;
- this.isAdmin = isAdmin;
- }
- @Id
- @GeneratedValue(strategy = IDENTITY)
- @Column(name = "MenuID", unique = true, nullable = false)
- public Integer getMenuId() {
- return this.menuId;
- }
- public void setMenuId(Integer menuId) {
- this.menuId = menuId;
- }
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "NavigationID", nullable = false)
- public CoreNavigation getCoreNavigation() {
- return this.coreNavigation;
- }
- public void setCoreNavigation(CoreNavigation coreNavigation) {
- this.coreNavigation = coreNavigation;
- }
- @Column(name = "StackView", nullable = false, length = 100)
- public String getStackView() {
- return this.stackView;
- }
- public void setStackView(String stackView) {
- this.stackView = stackView;
- }
- @Column(name = "StackClass", nullable = false)
- public String getStackClass() {
- return this.stackClass;
- }
- public void setStackClass(String stackClass) {
- this.stackClass = stackClass;
- }
- @Column(name = "IsAdmin", nullable = false)
- public boolean isIsAdmin() {
- return this.isAdmin;
- }
- public void setIsAdmin(boolean isAdmin) {
- this.isAdmin = isAdmin;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment