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

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

Best Java code snippets using org.grails.datastore.mapping.model.types.Association.getMapping (Showing top 4 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-core

/**
 * @return The fetch strategy for the association
 */
public FetchType getFetchStrategy() {
  return getMapping().getMappedForm().getFetchStrategy();
}
origin: org.grails/grails-datastore-core

private void buildCascadeOperations() {
  T mappedForm = this.getMapping().getMappedForm();
  this.orphanRemoval = mappedForm.isOrphanRemoval();
  final String cascade = mappedForm.getCascade();
origin: org.grails/grails-datastore-core

protected AbstractPersistentCollection(final Association association, Serializable associationKey, final Session session, Collection collection) {
  this.collection = collection;
  this.session = session;
  this.associationKey = associationKey;
  this.proxyEntities = association.getMapping().getMappedForm().isLazy();
  this.childType = association.getAssociatedEntity().getJavaClass();
  this.indexer = new AssociationQueryExecutor() {
    @Override
    public boolean doesReturnKeys() {
      return true;
    }
    @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();
    }
    @Override
    public PersistentEntity getIndexedEntity() {
      return association.getAssociatedEntity();
    }
  };
}
origin: org.grails/grails-datastore-core

PropertyMapping<Property> associationPropertyMapping = association.getMapping();
org.grails.datastore.mapping.model.typesAssociationgetMapping

Popular methods of Association

  • getAssociatedEntity
  • getName
  • getInverseSide
  • 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
  • getCascadeOperations,
  • getFetchStrategy,
  • 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