Tabnine Logo
Association.isOwningSide
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.grails/grails-datastore-core

  @Override
  public boolean isOwningSide() {
    return super.isOwningSide() || isForeignKeyInChild();
  }
}
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

  this.cascadeOperations = Collections.unmodifiableSet(new HashSet<>(cascades));
else if (isOwningSide()) {
  cascadeOperations = DEFAULT_OWNER_CASCADE;
origin: org.grails/grails-datastore-gorm-hibernate-core

if (referenced != null && association.isOwningSide()) {
  cascadeStrategy = CASCADE_ALL;
if (referenced != null && association.isOwningSide()) {
  cascadeStrategy = CASCADE_ALL;
origin: org.grails/grails-datastore-gorm-hibernate-core

  column.setNullable(false);
else if (property instanceof org.grails.datastore.mapping.model.types.OneToOne && association.isBidirectional() && !association.isOwningSide()) {
  if (isHasOne(((Association) property).getInverseSide())) {
    column.setNullable(false);
org.grails.datastore.mapping.model.typesAssociationisOwningSide

Javadoc

Returns whether this side owns the relationship. This controls the default cascading behavior if none is specified

Popular methods of Association

  • getAssociatedEntity
  • getName
  • getInverseSide
  • getOwner
  • getType
  • isBidirectional
  • isEmbedded
  • 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

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JLabel (javax.swing)
  • Top Vim plugins
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