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

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

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

origin: hibernate/hibernate-orm

/**
 * @param elements List of {@code ProperyData} instances
 * @param propertyContainer Metadata about a class and its properties
 *
 * @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,
    PropertyContainer propertyContainer,
    MetadataBuildingContext context) {
  int idPropertyCounter = 0;
  Collection<XProperty> properties = propertyContainer.getProperties();
  for ( XProperty p : properties ) {
    final int currentIdPropertyCounter = addProperty(
        propertyContainer,
        p,
        elements,
        context
    );
    idPropertyCounter += currentIdPropertyCounter;
  }
  return idPropertyCounter;
}
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.orm/hibernate-core

/**
 * @param elements List of {@code ProperyData} instances
 * @param propertyContainer Metadata about a class and its properties
 *
 * @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,
    PropertyContainer propertyContainer,
    MetadataBuildingContext context) {
  int idPropertyCounter = 0;
  Collection<XProperty> properties = propertyContainer.getProperties();
  for ( XProperty p : properties ) {
    final int currentIdPropertyCounter = addProperty(
        propertyContainer,
        p,
        elements,
        context
    );
    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.cfgPropertyContainergetProperties

Popular methods of PropertyContainer

  • <init>
  • assertTypesAreResolvable
  • discoverTypeWithoutReflection
  • getDeclaringClass
  • getEntityAtStake
  • mustBeSkipped
  • determineClassDefinedAccessStrategy
  • getExplicitAccessStrategy
  • hasExplicitAccessStrategy
  • 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

  • Making http requests using okhttp
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
  • Best plugins for Eclipse
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