Tabnine Logo
Association.getMapping
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
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