Codota Logo
Association.getInverseSide
Code IndexAdd Codota to your IDE (free)

How to use
getInverseSide
method
in
org.grails.datastore.mapping.model.types.Association

Best Java code snippets using org.grails.datastore.mapping.model.types.Association.getInverseSide (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.grails/grails-datastore-gorm-hibernate-core

protected boolean isBidirectionalManyToOneWithListMapping(PersistentProperty grailsProperty, Property prop) {
  if(grailsProperty instanceof Association) {
    Association association = (Association) grailsProperty;
    Association otherSide = association.getInverseSide();
    return association.isBidirectional() && otherSide != null &&
        prop.getValue() instanceof ManyToOne &&
        List.class.isAssignableFrom(otherSide.getType());
  }
  return false;
}
origin: org.grails/grails-datastore-gorm-hibernate-core

protected boolean canBindOneToOneWithSingleColumnAndForeignKey(Association currentGrailsProp) {
  if (currentGrailsProp.isBidirectional()) {
    final Association otherSide = currentGrailsProp.getInverseSide();
    if(otherSide != null) {
      if (isHasOne(otherSide)) {
        return false;
      }
      if (!currentGrailsProp.isOwningSide() && (otherSide.isOwningSide())) {
        return true;
      }
    }
  }
  return false;
}
origin: org.grails/grails-datastore-core

@Override
public List query(Object primaryKey) {
  Association inverseSide = association.getInverseSide();
  Query query = session.createQuery(association.getAssociatedEntity().getJavaClass());
  query.eq(inverseSide.getName(), primaryKey);
  query.projections().id();
  return query.list();
}
origin: org.grails/grails-datastore-gorm-hibernate-core

if (isHasOne(((Association) property).getInverseSide())) {
  column.setNullable(false);
origin: org.grails/grails-datastore-gorm-hibernate-core

  c.setUnique(config.isUnique());
else if (property.isBidirectional() && isHasOne(property.getInverseSide())) {
  c.setUnique(true);
origin: org.grails/grails-datastore-core

Association inverseSide = ((Association) persistentProperty).getInverseSide();
if (inverseSide instanceof Embedded ||
    inverseSide instanceof EmbeddedCollection) {
org.grails.datastore.mapping.model.typesAssociationgetInverseSide

Popular methods of Association

  • getAssociatedEntity
  • getName
  • getOwner
  • getType
  • isBidirectional
  • isEmbedded
  • isOwningSide
    Returns whether this side owns the relationship. This controls the default cascading behavior if non
  • buildCascadeOperations
  • doesCascade
    Returns true if the this association cascade for the given cascade operation
  • getCascadeOperations
  • getFetchStrategy
  • getMapping
  • getFetchStrategy,
  • getMapping,
  • getReferencedPropertyName,
  • isCircular,
  • setAssociatedEntity,
  • setOwningSide,
  • setReferencedPropertyName

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getExternalFilesDir (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now