Java Code Examples for org.hibernate.persister.entity.Loadable#getIdentifierType()
The following examples show how to use
org.hibernate.persister.entity.Loadable#getIdentifierType() .
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: CriteriaQueryTranslator.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
public TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value) { final Loadable loadable = ( Loadable ) getPropertyMapping( getEntityName( subcriteria ) ); return new TypedValue( loadable.getIdentifierType(), value, EntityMode.POJO ); }
Example 2
Source File: CriteriaQueryTranslator.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public TypedValue getTypedIdentifierValue(Criteria criteria, Object value) { final Loadable loadable = ( Loadable ) getPropertyMapping( getEntityName( criteria ) ); return new TypedValue( loadable.getIdentifierType(), value ); }