Tabnine Logo
ManyToMany.through
Code IndexAdd Tabnine to your IDE (free)

How to use
through
method
in
net.java.ao.ManyToMany

Best Java code snippets using net.java.ao.ManyToMany.through (Showing top 6 results out of 315)

origin: net.java.dev.activeobjects/activeobjects-core

private static void validateManyToManyAnnotation(final Method method) {
  final ManyToMany manyToMany = method.getAnnotation(ManyToMany.class);
  if (manyToMany != null) {
    final Class<? extends RawEntity<?>> throughType = manyToMany.value();
    final String reverse = manyToMany.reverse();
    if (reverse.length() != 0) {
      try {
        throughType.getMethod(reverse);
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid reverse element value. It must be the name of the corresponding getter method on the joining entity.", exception);
      }
    }
    if (manyToMany.through().length() != 0) {
      try {
        throughType.getMethod(manyToMany.through());
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid through element value. It must be the name of the getter method on the joining entity that refers to the remote entities.", exception);
      }
    }
  }
}
origin: net.java.dev.activeobjects/activeobjects

private static void validateManyToManyAnnotation(final Method method) {
  final ManyToMany manyToMany = method.getAnnotation(ManyToMany.class);
  if (manyToMany != null) {
    final Class<? extends RawEntity<?>> throughType = manyToMany.value();
    final String reverse = manyToMany.reverse();
    if (reverse.length() != 0) {
      try {
        throughType.getMethod(reverse);
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid reverse element value. It must be the name of the corresponding getter method on the joining entity.", exception);
      }
    }
    if (manyToMany.through().length() != 0) {
      try {
        throughType.getMethod(manyToMany.through());
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid through element value. It must be the name of the getter method on the joining entity that refers to the remote entities.", exception);
      }
    }
  }
}
origin: net.java.dev.activeobjects/activeobjects-core

if (manyToManyAnnotation.reverse().isEmpty() || manyToManyAnnotation.through().isEmpty()) {
  ret = legacyFetchManyToMany((RawEntity<K>) proxy, method, manyToManyAnnotation);
} else {
origin: net.java.dev.activeobjects/activeobjects

if (manyToManyAnnotation.reverse().isEmpty() || manyToManyAnnotation.through().isEmpty()) {
  ret = legacyFetchManyToMany((RawEntity<K>) proxy, method, manyToManyAnnotation);
} else {
origin: net.java.dev.activeobjects/activeobjects

final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class);
final Method reverseMethod = throughType.getMethod(annotation.reverse());
final Method throughMethod = throughType.getMethod(annotation.through());
final String reversePolymorphicTypeFieldName = getAttributeTypeFromMethod(reverseMethod).isAnnotationPresent(Polymorphic.class) ? getFieldNameConverter().getPolyTypeName(reverseMethod) : null;
final String remotePolymorphicTypeFieldName = getAttributeTypeFromMethod(throughMethod).isAnnotationPresent(Polymorphic.class) ? getFieldNameConverter().getPolyTypeName(throughMethod) : null;
origin: net.java.dev.activeobjects/activeobjects-core

final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class);
final Method reverseMethod = throughType.getMethod(annotation.reverse());
final Method throughMethod = throughType.getMethod(annotation.through());
final String reversePolymorphicTypeFieldName = getAttributeTypeFromMethod(reverseMethod).isAnnotationPresent(Polymorphic.class) ? getFieldNameConverter().getPolyTypeName(reverseMethod) : null;
final String remotePolymorphicTypeFieldName = getAttributeTypeFromMethod(throughMethod).isAnnotationPresent(Polymorphic.class) ? getFieldNameConverter().getPolyTypeName(throughMethod) : null;
net.java.aoManyToManythrough

Popular methods of ManyToMany

  • <init>
  • reverse
  • value
  • where

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setContentView (Activity)
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now