Package org.hibernate.annotations

Examples of org.hibernate.annotations.ColumnDefault


  }

  private static void applyColumnDefault(Ejb3Column column, PropertyData inferredData) {
    final XProperty xProperty = inferredData.getProperty();
    if ( xProperty != null ) {
      ColumnDefault columnDefaultAnn = xProperty.getAnnotation( ColumnDefault.class );
      if ( columnDefaultAnn != null ) {
        column.setDefaultValue( columnDefaultAnn.value() );
      }
    }
    else {
      LOG.trace(
          "Could not perform @ColumnDefault lookup as 'PropertyData' did not give access to XProperty"
View Full Code Here


  }

  private static void applyColumnDefault(Ejb3Column column, PropertyData inferredData) {
    final XProperty xProperty = inferredData.getProperty();
    if ( xProperty != null ) {
      ColumnDefault columnDefaultAnn = xProperty.getAnnotation( ColumnDefault.class );
      if ( columnDefaultAnn != null ) {
        column.setDefaultValue( columnDefaultAnn.value() );
      }
    }
    else {
      LOG.trace(
          "Could not perform @ColumnDefault lookup as 'PropertyData' did not give access to XProperty"
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.ColumnDefault

Copyright © 2018 www.massapicom. 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.