org.ujorm.orm.annot
Annotation Type View


@Retention(value=RUNTIME)
@Target(value={FIELD,TYPE})
public @interface View

View is a description of database view. Use it simillary like a table.

See Also:
Table

Optional Element Summary
 String alias
          View alias name.
 String name
          A named parameter for the view name.
 String schema
          Name of schema.
 String select
          Mapping a VIEW to the SQL SELECT.
 String value
          A shortcut for the attribute "name" of View.
 

name

public abstract String name
A named parameter for the view name. Default value is taken from a relation key name.

Default:
""

value

public abstract String value
A shortcut for the attribute "name" of View.

See Also:
name()
Default:
""

alias

public abstract String alias
View alias name. The default value is taken from a name.

Default:
""

select

public abstract String select
Mapping a VIEW to the SQL SELECT. The expession ${SCHEMA} is replaced for the real schema name in the SQL sttatement.

See Also:
orm.metaModel.MetaSelect.SCHEMA
Default:
""

schema

public abstract String schema
Name of schema. If the value is empty than a default database schema is used.

Default:
""


Copyright 2013, Pavel Ponec