org.hibernate.annotations.Where Java Examples
The following examples show how to use
org.hibernate.annotations.Where.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MetadataTable.java From youkefu with Apache License 2.0 | 5 votes |
/** * @return the tableproperty */ @Where(clause="impfield=0") //不载入 设置为 禁用 导入导出的字段 @OneToMany(cascade = CascadeType.ALL,fetch = FetchType.EAGER) @JoinColumn(name = "dbtableid") @OrderBy("sortindex") public List<TableProperties> getTableproperty() { return tableproperty; }
Example #2
Source File: User.java From tianti with Apache License 2.0 | 5 votes |
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "org_user_role_rel", joinColumns = {@JoinColumn(name = "user_id")}, inverseJoinColumns = {@JoinColumn(name = "role_id")}) @Where(clause="delete_flag=0") @OrderBy("no") public Set<Role> getRoles() { return roles; }
Example #3
Source File: DatabaseServerConfigTest.java From cloudbreak with Apache License 2.0 | 5 votes |
@Test public void testHasWhereAnnotation() { Where whereAnnotation = DatabaseServerConfig.class.getAnnotation(Where.class); assertNotNull(whereAnnotation); assertEquals("archived = false", whereAnnotation.clause()); }
Example #4
Source File: NetworkTest.java From cloudbreak with Apache License 2.0 | 5 votes |
@Test public void testHasWhereAnnotation() { Where whereAnnotation = Network.class.getAnnotation(Where.class); assertNotNull(whereAnnotation); assertEquals("archived = false", whereAnnotation.clause()); }
Example #5
Source File: RdsConfigTest.java From cloudbreak with Apache License 2.0 | 5 votes |
@Test public void testHasWhereAnnotation() { Where whereAnnotation = RDSConfig.class.getAnnotation(Where.class); assertNotNull(whereAnnotation); assertEquals("archived = false", whereAnnotation.clause()); }
Example #6
Source File: RecipeTest.java From cloudbreak with Apache License 2.0 | 4 votes |
@Test public void testHasWhereAnnotation() { Where whereAnnotation = Recipe.class.getAnnotation(Where.class); assertNotNull(whereAnnotation); assertEquals("archived = false", whereAnnotation.clause()); }
Example #7
Source File: RecipeViewTest.java From cloudbreak with Apache License 2.0 | 4 votes |
@Test public void testHasWhereAnnotation() { Where whereAnnotation = RecipeView.class.getAnnotation(Where.class); assertNotNull(whereAnnotation); assertEquals("archived = false", whereAnnotation.clause()); }
Example #8
Source File: EntityBinder.java From lams with GNU General Public License v2.0 | 3 votes |
public void setWhere(Where whereAnn) { if ( whereAnn != null ) { where = whereAnn.clause(); } }