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

panda.dao.entity.annotation.Join Maven / Gradle / Ivy

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
package panda.dao.entity.annotation;

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

/**
 * A JOIN mapping:
 * 
 *   select * from [this] 
 *     [LEFT OUTER] JOIN [target] ON [keys] = [refs]  
 * 
*/ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented public @interface Join { /** * join name */ String name(); /** * join type: default is 'LEFT OUTER' */ String type() default ""; /** * target class */ Class target(); /** * query key fields of this entity */ String[] keys(); /** * the related keys of the target class. */ String[] refs(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy