Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2012 Clarion Media, LLC
  * 
  * 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
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * 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 com.clarionmedia.infinitum.orm.annotation;

This annotation indicates that the annotated Field represents a one-to-one relationship with another persistent class.

Author(s):
Tyler Treat
Version:
1.0 02/19/12
public @interface OneToOne {

Returns the name of the persistent Class this relationship links to.

Returns:
name of persistent Class
Returns the name of the column representing the foreign key in this relationship. This column needs to be unique to maintain one-to-one integrity.

Returns:
name of foreign key column
Returns the owner of the relationship. This is the class which contains the foreign key.

Returns:
owner of the relationship
	Class<?> owner();

Returns the name of this relationship.

Returns:
name of one-to-one relationship.
New to GrepCode? Check out our FAQ X