org.ujoframework.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
 java.lang.String alias
          View alias name.
 java.lang.String name
          A named parameter for the view name.
 java.lang.String select
          Mapping a VIEW to the SQL SELECT.
 java.lang.String schema
          Name of schema.
 java.lang.String value
          A shortcut for the attribute "name" of View.
 

name

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

Default:
""

value

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

See Also:
name()
Default:
""

alias

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

Default:
""

select

public abstract java.lang.String select
Mapping a VIEW to the SQL SELECT.

Default:
""

schema

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

Default:
""


Copyright © 2010. All Rights Reserved.