org.hibernate.annotations.Formula.value()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中org.hibernate.annotations.Formula.value()方法的一些代码示例,展示了Formula.value()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Formula.value()方法的具体详情如下:
包路径:org.hibernate.annotations.Formula
类名称:Formula
方法名:value

Formula.value介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column();
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setBuildingContext( context );

代码示例来源:origin: com.intoverflow.booster/booster-core

private void init() {
  this.primaryKey = field.isAnnotationPresent(Id.class) || field.isAnnotationPresent(PrimaryKey.class);
  this.versionable = field.isAnnotationPresent(Version.class);
  this.javaProperty = field.getName();
  this.javaType = field.getType();
  this.columnName = PersistentRecognizer.getColumnName(field);
  if (field.isAnnotationPresent(Column.class)) {
    Column column = field.getAnnotation(Column.class);
    this.insertable = column.insertable();
    this.updatable = column.updatable();
  }
  if (field.isAnnotationPresent(Formula.class)) {
    Formula formula = field.getAnnotation(Formula.class);
    this.formulable = true;
    this.formula = formula.value();
    this.insertable = false;
    this.updatable = false;
  }
  if (field.isAnnotationPresent(Enumerated.class)) {
    this.enumerated = true;
    this.enumeratedType = field.getAnnotation(Enumerated.class).value();
  }
  resolveJdbc();
  resolveTypeHandler();
}

代码示例来源:origin: org.hibernate/hibernate-annotations

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column();
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setMappings( mappings );

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column();
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setMappings( mappings );

代码示例来源:origin: org.hibernate.orm/hibernate-core

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column( context );
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setPropertyHolder( propertyHolder );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column();
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setMappings( mappings );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

if ( formulaAnn != null ) {
  Ejb3Column formulaColumn = new Ejb3Column();
  formulaColumn.setFormula( formulaAnn.value() );
  formulaColumn.setImplicit( false );
  formulaColumn.setMappings( mappings );

相关文章