List of usage examples for org.hibernate.annotations NotFoundAction IGNORE
NotFoundAction IGNORE
To view the source code for org.hibernate.annotations NotFoundAction IGNORE.
Click Source Link
From source file:apm.common.core.AuditEntity.java
License:Open Source License
@JsonIgnore @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "audit_user_id") @NotFound(action = NotFoundAction.IGNORE) public User getAuditUser() { return auditUser; }
From source file:apm.common.core.BaseEntity.java
License:Open Source License
@JsonIgnore @ManyToOne(fetch = FetchType.LAZY) @NotFound(action = NotFoundAction.IGNORE) public User getCreateBy() { return createBy; }
From source file:apm.common.core.BaseEntity.java
License:Open Source License
@JsonIgnore @ManyToOne(fetch = FetchType.LAZY) @NotFound(action = NotFoundAction.IGNORE) public User getUpdateBy() { return updateBy; }
From source file:apm.modules.sys.entity.Area.java
License:Open Source License
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.LAZY, mappedBy = "area") @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy(value = "code") @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public List<Office> getOfficeList() { return officeList; }
From source file:apm.modules.sys.entity.Log.java
License:Open Source License
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "user_id") @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public User getUser() { return user;/*from w ww . j a v a 2s .c om*/ }
From source file:apm.modules.sys.entity.Menu.java
License:Open Source License
@ManyToMany(mappedBy = "menuList", fetch = FetchType.LAZY) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy("id")// w w w . j av a 2 s . com @Fetch(FetchMode.SUBSELECT) @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public Set<Role> getRoleList() { return roleList; }
From source file:apm.modules.sys.entity.Office.java
License:Open Source License
@ManyToOne @JoinColumn(name = "area_id") @NotFound(action = NotFoundAction.IGNORE) // @NotNull @JsonIgnore public Area getArea() { return area; }
From source file:apm.modules.sys.entity.Office.java
License:Open Source License
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.LAZY, mappedBy = "company") @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy(value = "createDate") @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @JsonIgnore//from w w w .ja v a 2s . co m public List<User> getUserList() { return userList; }
From source file:apm.modules.sys.entity.Role.java
License:Open Source License
@ManyToOne @JoinColumn(name = "office_id") @NotFound(action = NotFoundAction.IGNORE) public Office getOffice() { return office; }
From source file:apm.modules.sys.entity.Role.java
License:Open Source License
@ManyToMany(mappedBy = "roleList", fetch = FetchType.LAZY) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy("id")// w w w . j a v a 2 s. c o m @Fetch(FetchMode.SUBSELECT) @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public Set<User> getUserList() { return userList; }