Back to project page NexusData.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project NexusData listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.dkharrat.nexusdata.modelgen.metamodel; //from w w w .j a v a 2 s . c o m import org.modeshape.common.text.Inflector; public class Relationship extends Property { String destinationEntity; String inverseName; boolean toMany = false; public String getJavaType() { if (toMany) { return "Set<" + destinationEntity + ">"; } else { return destinationEntity; } } public boolean isToMany() { return toMany; } public String getDestinationEntity() { return destinationEntity; } public String getMethodNameForAddingToCollection() { return "add" + capitalizedFirstChar(getSingularName()); } }