All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.jorm.annotation.OneToOne Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
/*
 * @(#)OneToOne.java	2011-9-4
 *
 * Copyright (c) 2011. All Rights Reserved.
 *
 */

package com.github.javaclub.jorm.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * OneToOne
 *
 * @author Gerald Chen
 * @version $Id: OneToOne.java 2011-9-4 下午07:36:15 Exp $
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface OneToOne {

	/**
	 * Presents the one-to-one field entity's mapped ids.
	 *
	 * @return selField names
	 */
	String[] selField() default {};
	
	/**
	 * Presents the owner entity's mapped ids.
	 *
	 * @return ownerField names
	 */
	String[] ownerField() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy