Best code examples for Hibernate ORM EntityPersister class (org.hibernate.persister.entity.EntityPersister)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM EntityPersister class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM EntityPersister examples from Open Source projects
This code example shows how to use the following methods: getEntityName, getFactory, isVersioned, getRootTableIdentifierColumnNames, getRootTableName
58:	registerColumnType( Types.TIME, "time" ); 
59:	registerColumnType( Types.TIMESTAMP, "timestamp" ); 
60:	//the BLOB type requires a size arguement - this defaults to 
-
74:	} 
75:	 
76:	public String getCascadeConstraintsString() { 
77:	return " cascade"; 
78:	} 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getEntityName, getFactory, isVersioned, getRootTableIdentifierColumnNames, getRootTableName
58:	registerColumnType( Types.BIT, "bit" ); 
59:	registerColumnType( Types.BIGINT, "longint" ); 
60:	registerColumnType( Types.SMALLINT, "smallint" ); 
-
74:	} 
75:	 
76:	public String getAddColumnString() { 
77:	return "add column"; 
78:	} 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getEntityName, getFactory, isVersioned, getRootTableIdentifierColumnNames, getRootTableName
58:	registerColumnType( Types.FLOAT, "float" ); 
59:	registerColumnType( Types.DOUBLE, "double" ); 
60:	registerColumnType( Types.DATE, "date" ); 
-
74:	registerFunction( "mod", new StandardSQLFunction( "mod", StandardBasicTypes.INTEGER ) ); 
75:	registerFunction( "least", new StandardSQLFunction("least") ); 
76:	registerFunction( "greatest", new StandardSQLFunction("greatest") ); 
77:	registerFunction( "user", new StandardSQLFunction( "user", StandardBasicTypes.STRING ) ); 
78:	registerFunction( "concat", new StandardSQLFunction( "concat", StandardBasicTypes.STRING ) ); 
-
133:	return new UpdateLockingStrategy( lockable, lockMode ); 
134:	} 
135:	else { 
136:	return new SelectLockingStrategy( lockable, lockMode ); 
137:	} 
138:	} 
139:	} 
140:	 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getEntityName, isVersioned
65:	*/ 
66:	public void lock( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEntityName, getFactory, isVersioned, getRootTableIdentifierColumnNames, getRootTableName
58:	* @author Sherry Listgarten and Max Andersen 
59:	*/ 
60:	public class TimesTenDialect extends Dialect { 
-
74:	registerColumnType( Types.TIME, "TIME" ); 
75:	registerColumnType( Types.TIMESTAMP, "TIMESTAMP" ); 
76:	registerColumnType( Types.VARBINARY, "VARBINARY($l)" ); 
77:	registerColumnType( Types.NUMERIC, "DECIMAL($p, $s)" ); 
78:	// TimesTen has no BLOB/CLOB support, but these types may be suitable 
-
133:	 
134:	public String getDropSequenceString(String sequenceName) { 
135:	return "drop sequence " + sequenceName; 
136:	} 
137:	 
138:	public String getQuerySequencesString() { 
139:	return "select NAME from sys.sequences"; 
140:	} 
141:	 
-
143:	return new OracleJoinFragment(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getEntityName, isVersioned
66:	* @see org.hibernate.dialect.lock.LockingStrategy#lock 
67:	*/ 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEntityName, isVersioned
64:	*/ 
65:	public void lock( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEntityName, getFactory, isVersioned, getRootTableIdentifierColumnNames, getRootTableName
58:	public class RDMSOS2200Dialect extends Dialect { 
59:	 
60:	private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, RDMSOS2200Dialect.class.getName()); 
-
74:	* string is provided, plus an optional hasParenthesesIfNoArgs flag. 
75:	*/ 
76:	registerFunction( "abs", new StandardSQLFunction("abs") ); 
77:	registerFunction( "sign", new StandardSQLFunction("sign", StandardBasicTypes.INTEGER) ); 
78:	 
-
133:	registerFunction( "current_time", new NoArgSQLFunction("current_timestamp", StandardBasicTypes.TIME, false) ); 
134:	registerFunction( "current_timestamp", new NoArgSQLFunction("current_timestamp", StandardBasicTypes.TIMESTAMP, false) ); 
135:	registerFunction("curdate", new NoArgSQLFunction("curdate",StandardBasicTypes.DATE) ); 
136:	registerFunction("curtime", new NoArgSQLFunction("curtime",StandardBasicTypes.TIME) ); 
137:	registerFunction("days", new StandardSQLFunction("days",StandardBasicTypes.INTEGER) ); 
138:	registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth",StandardBasicTypes.INTEGER) ); 
139:	registerFunction("dayname", new StandardSQLFunction("dayname",StandardBasicTypes.STRING) ); 
140:	registerFunction("dayofweek", new StandardSQLFunction("dayofweek",StandardBasicTypes.INTEGER) ); 
141:	registerFunction("dayofyear", new StandardSQLFunction("dayofyear",StandardBasicTypes.INTEGER) ); 
-
143:	registerFunction("last_day", new StandardSQLFunction("last_day",StandardBasicTypes.DATE) ); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getPropertyValues, isMutable
This code example shows how to use the following methods: getFactory, getIdentifierPropertyName, getVersionProperty, isVersioned
This code example shows how to use the following methods: getIdentifier, isTransient
This code example shows how to use the following methods: getPropertyTypes, getPropertyValues
143:	processEntityPropertyValues( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: forceVersionIncrement, getVersionProperty, setPropertyValue
This code example shows how to use the following methods: getEntityName
This code example shows how to use the following methods: getIdentifier, isTransient
243:	Serializable id = session.getContextEntityIdentifier( object ); 
-
255:	} 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getEntityName
This code example shows how to use the following methods: getEntityName
This code example shows how to use the following methods: getIdentifier, isTransient
243:	if ( id == null ) { 
-
255:	 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFactory, getIdentifierType, getRootEntityName
108:	this.hashCode = generateHashCode(); 
-
116:	} 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: implementsLifecycle
This code example shows how to use the following methods: getPropertyTypes, getPropertyValues, setPropertyValues
155:	final Object[] values = persister.getPropertyValues( object ); 
156:	final Type[] types = persister.getPropertyTypes(); 
-
159:	persister.setPropertyValues( object, values ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEntityName
66:	this.entityName = persister.getEntityName(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getVersionProperty, isVersioned
128:	*/ 
-
131:	if (LOG.isTraceEnabled()) LOG.trace("Incrementing: " + versionType.toLoggableString(version, session.getFactory()) + " to " 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getIdentifierGenerator, getPropertyValues, getVersionProperty, getVersionType, isVersioned
130:	persister.insert(id, state, entity, this); 
131:	} 
132:	persister.setIdentifier( entity, id, this ); 
133:	return id; 
-
137:	// deletes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
-
141:	delete(null, entity); 
-
144:	public void delete(String entityName, Object entity) { 
-
146:	EntityPersister persister = getEntityPersister(entityName, entity); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isMutable
132:	if ( id == null || s == null || entityName == null ) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: implementsLifecycle
This code example shows how to use the following methods: getEntityName
This code example shows how to use the following methods: getCurrentVersion, getEntityName
This code example shows how to use the following methods: getPropertyNames, getPropertyTypes
40:	event.getSession() 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getIdentifier, isTransient
243:	* @return True if x == y; false otherwise. 
-
255:	 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEntityName, getIdentifier
This code example shows how to use the following methods: getIdentifierType, getIdentifierColumnNames
70:	this( 
Full Snippet Info
5
CodeRank
See Code Examples for Hibernate ORM EntityPersister Methods: