Hibernate ORM AbstractEntityTuplizer - 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 AbstractEntityTuplizer class.

This code example shows how to use the following methods: getIdentifier
		return toIdentifier(super.getIdentifier(entity, arg1));
	} 
	 
	@Override 
	public Serializable getIdentifier(Object entity) throws HibernateException {
		return toIdentifier(super.getIdentifier(entity)); 
	} 
 
	private Serializable toIdentifier(Serializable id) {
		if(id instanceof Component) {
			HashMap<String, String> map = new HashMap<String, String>();
			Component cfc=(Component) id;
			ComponentScope scope = cfc.getComponentScope();
			railo.runtime.component.Property[] props = HibernateUtil.getIDProperties(cfc, true,true);
			String name,value;
			for(int i=0;i<props.length;i++){
				name=props[i].getName();
				value=CommonUtil.toString(scope.get(CommonUtil.createKey(name),null),null);
				map.put(name, value);
			} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
See Code Examples for Hibernate ORM AbstractEntityTuplizer Methods: