Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  *  Copyright 2009-2014 Pavel Ponec
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
package org.ujorm.orm.annot;
Use the annotation to mark a Key static field like XML Attribute.

See also:
public @interface Table {

A String for the NULL value.
    public static final String NULL = ""// TODO: try to use: "<NULL>"

A named parameter for the table name. Default value is taken from a related key name.
    String name() default ;
A shortcut for the attribute "name" of Table.

See also:
    String value() default ;
Table alias name. The default value is taken from a name.
    String alias() default ;
Name of schema. If the value is empty than a default database schema is used.

See also:
    String schema() default ;
Name of DB sequence. The value is not used by default, however a special implementation of the UjoSequencer can do it.
    String sequence() default ;
Database table can have the the read-only state. The value can change the default value of the

See also:
) only. The parameter value is evaluated in the execution SQL commands type of INSERT, UPDATE, and DELETE.
    boolean readOnly() default false;
Parameter to control how the DLL (Data Definition Language) statements will be used to a defining data structure modification. The value can be defined a parent, so the hierarchy from the parent to a child is:
  • Meta Parameters
  • Database
  • Table
In case the root Meta Parameters is undefined, then the parameter Orm2ddlPolicy.CREATE_OR_UPDATE_DDL CREATE_OR_UPDATE_DDL will be used.

See also:
New to GrepCode? Check out our FAQ X