Tabnine Logo
PersistentEntity.isOwningEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
isOwningEntity
method
in
org.grails.datastore.mapping.model.PersistentEntity

Best Java code snippets using org.grails.datastore.mapping.model.PersistentEntity.isOwningEntity (Showing top 2 results out of 315)

origin: org.grails/grails-datastore-core

protected void configureOwningSide(Association association) {
  PersistentEntity associatedEntity = association.getAssociatedEntity();
  if(associatedEntity == null) {
    association.setOwningSide(true);
  }
  else {
    if (association.isBidirectional()) {
      if (associatedEntity.isOwningEntity(association.getOwner())) {
        association.setOwningSide(true);
      }
    }
    else {
      if (association instanceof OneToOne) {
        if (associatedEntity.isOwningEntity(association.getOwner()))
          association.setOwningSide(true);
      } else if (!(association instanceof Basic)) {
        if (associatedEntity.isOwningEntity(association.getOwner())) {
          association.setOwningSide(true);
        }
        else {
          association.setOwningSide(false);
        }
      }
    }
  }
}
origin: org.grails/grails-datastore-gorm-hibernate-core

if ((referenced != null && referenced.isOwningEntity(domainClass)) || association.isCircular()) {
  cascadeStrategy = CASCADE_SAVE_UPDATE;
if (referenced != null && referenced.isOwningEntity(domainClass) && !isCircularAssociation(grailsProperty)) {
  cascadeStrategy = CASCADE_ALL;
if (referenced != null && referenced.isOwningEntity(domainClass)) {
  cascadeStrategy = CASCADE_ALL;
} else {
org.grails.datastore.mapping.modelPersistentEntityisOwningEntity

Javadoc

Returns whether the specified entity asserts ownership over this entity

Popular methods of PersistentEntity

  • getJavaClass
  • getIdentity
    Returns the identity of the instance
  • getMapping
    Defines the mapping between this persistent entity and an external form
  • getPropertyByName
    Obtains a PersistentProperty instance by name
  • getName
    The entity name including any package prefix
  • getPersistentProperties
    A list of properties to be persisted
  • getVersion
    Returns the version property.
  • isMultiTenant
  • getAssociations
    A list of the associations for this entity. This is typically a subset of the list returned by #getP
  • getCompositeIdentity
    The composite id
  • getMappingContext
    Obtains the MappingContext where this PersistentEntity is defined
  • getReflector
  • getMappingContext,
  • getReflector,
  • getTenantId,
  • isInitialized,
  • isRoot,
  • isVersioned,
  • addOwner,
  • getDecapitalizedName,
  • getDiscriminator

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • 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