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

This code example shows how to use the following methods: getComponentClassName, isDynamic
			} 
		} 
	} 
 
	private static void addComponent(Map components, Component comp) {
		if(!comp.isDynamic()) {
			Component existing = (Component) components.put(comp.getComponentClassName(), comp);
			 
			if(existing!=null) {
				log.warn("Component " + existing.getComponentClassName() + " found more than once! Will only generate the last found.");
			} 
		} else { 
			log.debug("dynamic-component found. Ignoring it as a component, but will collect any embedded components."); 
		}	 
		collectComponents( components, new ComponentPOJOClass(comp, new Cfg2JavaTool()).getAllPropertiesIterator());		
	} 
 
} 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getComponentClassName, isDynamic
	public Object accept(SimpleValue o) {
		return null; // TODO: return o.getTypeName() ? (it is not an association) 
	} 
	 
	public Object accept(Component component) {
		if(component.isDynamic()) {
			return null; //"java.util.Map"; (not an association) 
		} 
		return component.getComponentClassName();
	} 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: addProperty, getPropertySpan, getTable, setTable

6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: isDynamic
	public Object accept(DependantValue value) {
		throw new IllegalArgumentException("No tag for " + value);
	} 
 
	public Object accept(Component component) {
		return component.isDynamic()?"dynamic-component":"component";
	} 
 
	public Object accept(ManyToOne mto) {
		return "many-to-one"; 
	} 
 
	public Object accept(OneToOne oto) {
		return "one-to-one"; 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getComponentClassName
		return super.accept(o);
	} 
 
	public Object accept(Component value) {
		// composite-element breaks without it. 
		return value.getComponentClassName();
	} 
		 
	public Object accept(OneToOne o) {
		return acceptToOne(o);
	} 
	 
	public Object accept(ManyToOne o) {
		return acceptToOne(o);
	} 
	 
	private Object acceptToOne(ToOne value) {
		return value.getReferencedEntityName(); // should get the cfg and lookup the persistenclass.			
	} 
	 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE