congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PropertyContainer.hasExplicitAccessStrategy
Code IndexAdd Tabnine to your IDE (free)

How to use
hasExplicitAccessStrategy
method
in
org.hibernate.cfg.PropertyContainer

Best Java code snippets using org.hibernate.cfg.PropertyContainer.hasExplicitAccessStrategy (Showing top 3 results out of 315)

origin: org.hibernate/hibernate-annotations

/**
 * @param elements List of {@code ProperyData} instances
 * @param defaultAccessType The default value access strategy which has to be used in case no explicit local access
 * strategy is used
 * @param propertyContainer Metadata about a class and its properties
 * @param mappings Mapping meta data
 *
 * @return the number of id properties found while iterating the elements of {@code annotatedClass} using
 *         the determined access strategy, {@code false} otherwise.
 */
static int addElementsOfClass(
    List<PropertyData> elements, AccessType defaultAccessType, PropertyContainer propertyContainer, ExtendedMappings mappings
) {
  int idPropertyCounter = 0;
  AccessType accessType = defaultAccessType;
  if ( propertyContainer.hasExplicitAccessStrategy() ) {
    accessType = propertyContainer.getExplicitAccessStrategy();
  }
  propertyContainer.assertTypesAreResolvable( accessType );
  Collection<XProperty> properties = propertyContainer.getProperties( accessType );
  for ( XProperty p : properties ) {
    final int currentIdPropertyCounter = addProperty(
        propertyContainer, p, elements, accessType.getType(), mappings
    );
    idPropertyCounter += currentIdPropertyCounter;
  }
  return idPropertyCounter;
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * @param elements List of {@code ProperyData} instances
 * @param defaultAccessType The default value access strategy which has to be used in case no explicit local access
 * strategy is used
 * @param propertyContainer Metadata about a class and its properties
 * @param mappings Mapping meta data
 *
 * @return the number of id properties found while iterating the elements of {@code annotatedClass} using
 *         the determined access strategy, {@code false} otherwise.
 */
static int addElementsOfClass(
    List<PropertyData> elements,
    AccessType defaultAccessType,
    PropertyContainer propertyContainer,
    Mappings mappings) {
  int idPropertyCounter = 0;
  AccessType accessType = defaultAccessType;
  if ( propertyContainer.hasExplicitAccessStrategy() ) {
    accessType = propertyContainer.getExplicitAccessStrategy();
  }
  Collection<XProperty> properties = propertyContainer.getProperties( accessType );
  for ( XProperty p : properties ) {
    final int currentIdPropertyCounter = addProperty(
        propertyContainer, p, elements, accessType.getType(), mappings
    );
    idPropertyCounter += currentIdPropertyCounter;
  }
  return idPropertyCounter;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * @param elements List of {@code ProperyData} instances
 * @param defaultAccessType The default value access strategy which has to be used in case no explicit local access
 * strategy is used
 * @param propertyContainer Metadata about a class and its properties
 * @param mappings Mapping meta data
 *
 * @return the number of id properties found while iterating the elements of {@code annotatedClass} using
 *         the determined access strategy, {@code false} otherwise.
 */
static int addElementsOfClass(
    List<PropertyData> elements,
    AccessType defaultAccessType,
    PropertyContainer propertyContainer,
    Mappings mappings) {
  int idPropertyCounter = 0;
  AccessType accessType = defaultAccessType;
  if ( propertyContainer.hasExplicitAccessStrategy() ) {
    accessType = propertyContainer.getExplicitAccessStrategy();
  }
  Collection<XProperty> properties = propertyContainer.getProperties( accessType );
  for ( XProperty p : properties ) {
    final int currentIdPropertyCounter = addProperty(
        propertyContainer, p, elements, accessType.getType(), mappings
    );
    idPropertyCounter += currentIdPropertyCounter;
  }
  return idPropertyCounter;
}
org.hibernate.cfgPropertyContainerhasExplicitAccessStrategy

Popular methods of PropertyContainer

  • <init>
  • assertTypesAreResolvable
  • discoverTypeWithoutReflection
  • getDeclaringClass
  • getEntityAtStake
  • getProperties
  • mustBeSkipped
  • determineClassDefinedAccessStrategy
  • getExplicitAccessStrategy
  • initProperties
    Retrieves all properties from the xClass with the specified access type. This method does not take a
  • collectPersistentAttributesUsingClassLevelAccessType
  • collectPersistentAttributesUsingLocalAccessType
  • collectPersistentAttributesUsingClassLevelAccessType,
  • collectPersistentAttributesUsingLocalAccessType,
  • considerExplicitFieldAndPropertyAccess,
  • determineLocalClassDefinedAccessStrategy,
  • getClassLevelAccessType,
  • preFilter,
  • checkForJpaAccess

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top plugins for Android Studio
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