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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * 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.

Tyler Treat
1.0 02/19/12
public @interface OneToOne {

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

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.

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

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

Returns the name of this relationship.

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