Codota Logo
HibernateTraversableResolver.addAssociationsToTheSetForAllProperties
Code IndexAdd Codota to your IDE (free)

How to use
addAssociationsToTheSetForAllProperties
method
in
org.hibernate.cfg.beanvalidation.HibernateTraversableResolver

Best Java code snippets using org.hibernate.cfg.beanvalidation.HibernateTraversableResolver.addAssociationsToTheSetForAllProperties (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

public HibernateTraversableResolver(
    EntityPersister persister,
    ConcurrentHashMap<EntityPersister, Set<String>> associationsPerEntityPersister, 
    SessionFactoryImplementor factory) {
  this.associations = associationsPerEntityPersister.get( persister );
  if (this.associations == null) {
    this.associations = new HashSet<String>();
    addAssociationsToTheSetForAllProperties( persister.getPropertyNames(), persister.getPropertyTypes(), "", factory );
    associationsPerEntityPersister.put( persister, associations );
  }
}
origin: hibernate/hibernate-orm

private void addAssociationsToTheSetForOneProperty(String name, Type type, String prefix, SessionFactoryImplementor factory) {
  if ( type.isCollectionType() ) {
    CollectionType collType = (CollectionType) type;
    Type assocType = collType.getElementType( factory );
    addAssociationsToTheSetForOneProperty(name, assocType, prefix, factory);
  }
  //ToOne association
  else if ( type.isEntityType() || type.isAnyType() ) {
    associations.add( prefix + name );
  }
  else if ( type.isComponentType() ) {
    CompositeType componentType = (CompositeType) type;
    addAssociationsToTheSetForAllProperties(
        componentType.getPropertyNames(),
        componentType.getSubtypes(),
        (prefix.equals( "" ) ? name : prefix + name) + ".",
        factory);
  }
}
origin: org.hibernate/hibernate-annotations

public HibernateTraversableResolver(
    EntityPersister persister,
    ConcurrentHashMap<EntityPersister, Set<String>> associationsPerEntityPersister, 
    SessionFactoryImplementor factory) {
  this.associations = associationsPerEntityPersister.get( persister );
  if (this.associations == null) {
    this.associations = new HashSet<String>();
    addAssociationsToTheSetForAllProperties( persister.getPropertyNames(), persister.getPropertyTypes(), "", factory );
    associationsPerEntityPersister.put( persister, associations );
  }
}
origin: org.hibernate/hibernate-annotations

private void addAssociationsToTheSetForOneProperty(String name, Type type, String prefix, SessionFactoryImplementor factory) {
  if ( type.isCollectionType() ) {
    CollectionType collType = (CollectionType) type;
    Type assocType = collType.getElementType( factory );
    addAssociationsToTheSetForOneProperty(name, assocType, prefix, factory);
  }
  //ToOne association
  else if ( type.isEntityType() || type.isAnyType() ) {
    associations.add( prefix + name );
  } else if ( type.isComponentType() ) {
    AbstractComponentType componentType = (AbstractComponentType) type;
    addAssociationsToTheSetForAllProperties(
        componentType.getPropertyNames(),
        componentType.getSubtypes(),
        (prefix.equals( "" ) ? name : prefix + name) + ".",
        factory);
  }
}
origin: org.hibernate.orm/hibernate-core

public HibernateTraversableResolver(
    EntityTypeDescriptor entityDescriptor,
    ConcurrentHashMap<EntityTypeDescriptor, Set<String>> associationsPerEntityDescriptor) {
  this.associations = associationsPerEntityDescriptor.get( entityDescriptor );
  if (this.associations == null) {
    this.associations = new HashSet<>();
    addAssociationsToTheSetForAllProperties( entityDescriptor );
    associationsPerEntityDescriptor.put( entityDescriptor, associations );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public HibernateTraversableResolver(
    EntityPersister persister,
    ConcurrentHashMap<EntityPersister, Set<String>> associationsPerEntityPersister, 
    SessionFactoryImplementor factory) {
  this.associations = associationsPerEntityPersister.get( persister );
  if (this.associations == null) {
    this.associations = new HashSet<String>();
    addAssociationsToTheSetForAllProperties( persister.getPropertyNames(), persister.getPropertyTypes(), "", factory );
    associationsPerEntityPersister.put( persister, associations );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public HibernateTraversableResolver(
    EntityPersister persister,
    ConcurrentHashMap<EntityPersister, Set<String>> associationsPerEntityPersister, 
    SessionFactoryImplementor factory) {
  this.associations = associationsPerEntityPersister.get( persister );
  if (this.associations == null) {
    this.associations = new HashSet<String>();
    addAssociationsToTheSetForAllProperties( persister.getPropertyNames(), persister.getPropertyTypes(), "", factory );
    associationsPerEntityPersister.put( persister, associations );
  }
}
origin: org.hibernate.orm/hibernate-core

private void addAssociationsToTheSetForOneProperty(PersistentAttributeDescriptor attribute) {
  if ( attribute instanceof PluralPersistentAttribute
      || attribute instanceof SingularPersistentAttributeEntity ) {
    associations.add( attribute.getNavigableRole().getFullPath() );
  }
  else if ( attribute instanceof SingularPersistentAttributeEmbedded ) {
    addAssociationsToTheSetForAllProperties( ( (SingularPersistentAttributeEmbedded) attribute ).getEmbeddedDescriptor() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void addAssociationsToTheSetForOneProperty(String name, Type type, String prefix, SessionFactoryImplementor factory) {
  if ( type.isCollectionType() ) {
    CollectionType collType = (CollectionType) type;
    Type assocType = collType.getElementType( factory );
    addAssociationsToTheSetForOneProperty(name, assocType, prefix, factory);
  }
  //ToOne association
  else if ( type.isEntityType() || type.isAnyType() ) {
    associations.add( prefix + name );
  } else if ( type.isComponentType() ) {
    CompositeType componentType = (CompositeType) type;
    addAssociationsToTheSetForAllProperties(
        componentType.getPropertyNames(),
        componentType.getSubtypes(),
        (prefix.equals( "" ) ? name : prefix + name) + ".",
        factory);
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private void addAssociationsToTheSetForOneProperty(String name, Type type, String prefix, SessionFactoryImplementor factory) {
  if ( type.isCollectionType() ) {
    CollectionType collType = (CollectionType) type;
    Type assocType = collType.getElementType( factory );
    addAssociationsToTheSetForOneProperty(name, assocType, prefix, factory);
  }
  //ToOne association
  else if ( type.isEntityType() || type.isAnyType() ) {
    associations.add( prefix + name );
  } else if ( type.isComponentType() ) {
    CompositeType componentType = (CompositeType) type;
    addAssociationsToTheSetForAllProperties(
        componentType.getPropertyNames(),
        componentType.getSubtypes(),
        (prefix.equals( "" ) ? name : prefix + name) + ".",
        factory);
  }
}
org.hibernate.cfg.beanvalidationHibernateTraversableResolveraddAssociationsToTheSetForAllProperties

Popular methods of HibernateTraversableResolver

  • <init>
  • addAssociationsToTheSetForOneProperty
  • getStringBasedPath

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • orElseThrow (Optional)
  • requestLocationUpdates (LocationManager)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • 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
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • 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