Tabnine Logo
ImplicitCollectionTableNameSource.getOwningAttributePath
Code IndexAdd Tabnine to your IDE (free)

How to use
getOwningAttributePath
method
in
org.hibernate.boot.model.naming.ImplicitCollectionTableNameSource

Best Java code snippets using org.hibernate.boot.model.naming.ImplicitCollectionTableNameSource.getOwningAttributePath (Showing top 7 results out of 315)

origin: hibernate/hibernate-orm

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  // JPA states we should use the following as default:
  //      "The concatenation of the name of the containing entity and the name of the
  //       collection attribute, separated by an underscore.
  // aka:
  //     if owning entity has a JPA entity name: {OWNER JPA ENTITY NAME}_{COLLECTION ATTRIBUTE NAME}
  //     otherwise: {OWNER ENTITY NAME}_{COLLECTION ATTRIBUTE NAME}
  final String entityName = transformEntityName( source.getOwningEntityNaming() );
  final String name = entityName
      + '_'
      + transformAttributePath( source.getOwningAttributePath() );
  return toIdentifier( name, source.getBuildingContext() );
}
origin: hibernate/hibernate-orm

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  Identifier identifier = toIdentifier(
      source.getOwningPhysicalTableName().getText() + "_" + transformAttributePath( source.getOwningAttributePath() ),
      source.getBuildingContext()
  );
  if ( source.getOwningPhysicalTableName().isQuoted() ) {
    identifier = Identifier.quote( identifier );
  }
  return identifier;
}
origin: hibernate/hibernate-orm

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  // This impl uses the owner entity table name instead of the JPA entity name when
  // generating the implicit name.
  final String name = source.getOwningPhysicalTableName().getText()
      + '_'
      + transformAttributePath( source.getOwningAttributePath() );
  return toIdentifier( name, source.getBuildingContext() );
}
origin: Evolveum/midpoint

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  Identifier i = super.determineCollectionTableName(source);
  LOGGER.trace("determineCollectionTableName {} {} {} -> {}", source.getOwningEntityNaming(),
      source.getOwningPhysicalTableName(), source.getOwningAttributePath(), i);
  return i;
}
origin: org.hibernate.orm/hibernate-core

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  // JPA states we should use the following as default:
  //      "The concatenation of the name of the containing entity and the name of the
  //       collection attribute, separated by an underscore.
  // aka:
  //     if owning entity has a JPA entity name: {OWNER JPA ENTITY NAME}_{COLLECTION ATTRIBUTE NAME}
  //     otherwise: {OWNER ENTITY NAME}_{COLLECTION ATTRIBUTE NAME}
  final String entityName = transformEntityName( source.getOwningEntityNaming() );
  final String name = entityName
      + '_'
      + transformAttributePath( source.getOwningAttributePath() );
  return toIdentifier( name, source.getBuildingContext() );
}
origin: v-ladynev/fluent-hibernate

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  String ownerEntity = source.getOwningEntityNaming().getEntityName();
  String ownerEntityTable = NamingStrategyUtils.unqualifyEntityName(ownerEntity);
  String associatedEntity = null;
  String associatedEntityTable = null;
  String propertyName = getPropertyName(source.getOwningAttributePath());
  String result = hibernate4Strategy.collectionTableName(ownerEntity, ownerEntityTable,
      associatedEntity, associatedEntityTable, propertyName);
  return toIdentifier(result, source.getBuildingContext());
}
origin: org.hibernate.orm/hibernate-core

@Override
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) {
  Identifier identifier = toIdentifier(
      source.getOwningPhysicalTableName().getText() + "_" + transformAttributePath( source.getOwningAttributePath() ),
      source.getBuildingContext()
  );
  if ( source.getOwningPhysicalTableName().isQuoted() ) {
    identifier = Identifier.quote( identifier );
  }
  return identifier;
}
org.hibernate.boot.model.namingImplicitCollectionTableNameSourcegetOwningAttributePath

Javadoc

Access to the name of the attribute, from the owning side, that defines the association.

Popular methods of ImplicitCollectionTableNameSource

  • getBuildingContext
  • getOwningEntityNaming
    Access to entity naming information for the owning side.
  • getOwningPhysicalTableName
    Access to the physical name of the owning entity's table.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top Sublime Text 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