ivo.ivoInterface.vm Maven / Gradle / Ivy
package $model.getPackageName();
#foreach ( $imp in $model.getImports() )
import $imp;
#end
/**
* $model.getComment()
*
* @author $model.getAuthor()
**/
@SuppressWarnings("all")
#if ($model.isDeprecated())
@Deprecated
@ToBeRemoved(date="$model.getRemoveDate()")
#end
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public interface $model.getInterfaceClazzName() $model.getInterfaceImplements(){
#foreach ( $field in $model.getAllFields() )
/**
* property constant for $field.name
* property comment: $field.comment
**/
public static final String PROP_$field.name.toUpperCase() = "$field.name";
#end
#if ( $model.isIdentity() && !$model.hasParentClazz() )
/**
* property constant for the id
**/
public static final String PROP_ID = "id";
/**
* the id
*
* @return the value for id
*
**/
@Override
public String getId();
/**
* the id as long
*
* @return the value for id
*
**/
@JsonIgnore
@Override
public long getIdAsLong();
#end
#foreach ( $field in $model.getAllFields() )
/**
* $field.comment
#if ( $field.required )
* This field is required.
#else
* This field is optional, thus may be null.
#end
*
* @return the value for $field.name
*
**/
#if ( $field.required )
@Nonnull
#else
@Nullable
#end
public $field.getTypeAsString( true ) get$tool.upperCaseFirst( $field.name )();
#end
/**
* @return a clone
**/
public $model.getInterfaceClazzName() clone();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy