Package javax.persistence

Examples of javax.persistence.JoinColumn.foreignKey()


    value.setTypeName( inferredData.getClassOrElementName() );
    final String propertyName = inferredData.getPropertyName();
    value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
   
    String fkName = null;
    if ( joinColumn != null && joinColumn.foreignKey() != null ) {
      fkName = joinColumn.foreignKey().name();
    }
    if ( StringHelper.isEmpty( fkName ) ) {
      ForeignKey fk = property.getAnnotation( ForeignKey.class );
      fkName = fk != null ? fk.name() : "";
View Full Code Here


    final String propertyName = inferredData.getPropertyName();
    value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
   
    String fkName = null;
    if ( joinColumn != null && joinColumn.foreignKey() != null ) {
      fkName = joinColumn.foreignKey().name();
    }
    if ( StringHelper.isEmpty( fkName ) ) {
      ForeignKey fk = property.getAnnotation( ForeignKey.class );
      fkName = fk != null ? fk.name() : "";
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.