Back to project page jpdroid.
The source code is released under:
GNU General Public License
If you think the Android project jpdroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package br.com.rafael.jpdroid.annotations; //from w w w .j a va2s. c o m import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Identifica atributo de uma classe como chave estrangeira. * * @author Rafael Centenaro * */ @Target({java.lang.annotation.ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface ForeignKey { /** * Entidade relacionada. * @return */ Class<?> joinEntity(); /** * Coluna chave prim?ria da entidade relacionada. * @return */ String joinPrimaryKey(); /** * Indica se deve excluir este registro quando a entidade relacionada for deletada. * @return */ boolean deleteCascade() default false; }