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

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

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFrame (javax.swing)
  • Best IntelliJ 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