Hibernate ORM MappingException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM MappingException class.

This code example shows how to use the following methods:
     * Register an audit entity name. If the name is already registered, an exception is thrown. 
     * @param auditEntityName Name of the audit entity. 
     */ 
    public void register(String auditEntityName) {
        if (auditEntityNames.contains(auditEntityName)) {
            throw new MappingException("The audit entity name '" + auditEntityName + "' is already registered.");
        } 
         
        auditEntityNames.add(auditEntityName);
    } 
 
    /** 
     * Creates a unique (not yet registered) audit entity name by appending consecutive numbers to the base 
     * name. If the base name is not yet used, it is returned unmodified. 
     * @param baseAuditEntityName The base entity name. 
     * @return  
     */ 
    public String createUnique(final String baseAuditEntityName) {
        String auditEntityName = baseAuditEntityName;
        int count = 1;
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
	public NotYetImplementedException(Throwable root) { 
		super( root ); 
	} 
 
	public NotYetImplementedException(String s) { 
		super( s ); 
	} 
 
} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
			        "Property path [" + entityName + "." + propertyName + "] does not reference a collection"
			); 
		} 
 
		String role = ( ( CollectionType ) type ).getRole();
		try { 
			return ( QueryableCollection ) factory.getCollectionPersister( role );
		} 
		catch ( ClassCastException cce ) {
			throw new QueryException( "collection role is not queryable: " + role );
		} 
		catch ( Exception e ) {
			throw new QueryException( "collection role not found: " + role );
		} 
	} 
 
	public final TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
	        throws HibernateException {
		return NO_VALUES;
	} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
				" type: " + 
				getIndex().getType().getName()
			); 
		} 
		if ( indexNodeName!=null && !indexNodeName.startsWith("@") ) {
			throw new MappingException("index node must be an attribute: " + indexNodeName );
		} 
	} 
	 
	public boolean isList() { 
		return false; 
	} 
 
	public String getIndexNodeName() {
		return indexNodeName;
	} 
 
	public void setIndexNodeName(String indexNodeName) {
		this.indexNodeName = indexNodeName;
	} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		 
		try { 
			this.clazz = Context.loadClass(enumClassName);
		} 
		catch (ClassNotFoundException e) {
			throw new MappingException("enumClass " + enumClassName + " not found", e);
		} 
	} 
	 
	public int[] sqlTypes() { 
		return SQL_TYPES;
	} 
	 
	public Class<?> returnedClass() {
		return clazz;
	} 
	 
	@SuppressWarnings("unchecked") 
	public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws HibernateException, SQLException {
		String name = resultSet.getString(names[0]);
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java