Codota Logo
Mapping.getIdentifierPropertyName
Code IndexAdd Codota to your IDE (free)

How to use
getIdentifierPropertyName
method
in
org.hibernate.engine.spi.Mapping

Best Java code snippets using org.hibernate.engine.spi.Mapping.getIdentifierPropertyName (Showing top 7 results out of 315)

  • Common ways to obtain Mapping
private void myMethod () {
Mapping m =
  • Codota IconPersistentClass persistentClass;!persistentClass.hasIdentifierProperty()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

/**
 * The name of the property on the associated entity to which our FK
 * refers
 *
 * @param factory The mappings...
 *
 * @return The appropriate property name.
 *
 * @throws MappingException Generally, if unable to resolve the associated entity name
 */
public final String getIdentifierOrUniqueKeyPropertyName(Mapping factory)
    throws MappingException {
  if ( isReferenceToPrimaryKey() || uniqueKeyPropertyName == null ) {
    return factory.getIdentifierPropertyName( getAssociatedEntityName() );
  }
  else {
    return uniqueKeyPropertyName;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * The name of the property on the associated entity to which our FK
 * refers
 *
 * @param factory The mappings...
 * @return The appropriate property name.
 * @throws MappingException Generally, if unable to resolve the associated entity name
 */
public final String getIdentifierOrUniqueKeyPropertyName(Mapping factory)
throws MappingException {
  if ( isReferenceToPrimaryKey() ) {
    return factory.getIdentifierPropertyName( getAssociatedEntityName() );
  }
  else {
    return uniqueKeyPropertyName;
  }
}

origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * The name of the property on the associated entity to which our FK
 * refers
 *
 * @param factory The mappings...
 * @return The appropriate property name.
 * @throws MappingException Generally, if unable to resolve the associated entity name
 */
public final String getIdentifierOrUniqueKeyPropertyName(Mapping factory)
throws MappingException {
  if ( isReferenceToPrimaryKey() ) {
    return factory.getIdentifierPropertyName( getAssociatedEntityName() );
  }
  else {
    return uniqueKeyPropertyName;
  }
}

origin: com.fasterxml.jackson.datatype/jackson-datatype-hibernate5

String idName;
if (_mapping != null) {
  idName = _mapping.getIdentifierPropertyName(init.getEntityName());
} else {
  idName = ProxySessionReader.getIdentifierPropertyName(init);
origin: FasterXML/jackson-datatype-hibernate

String idName;
if (_mapping != null) {
  idName = _mapping.getIdentifierPropertyName(init.getEntityName());
} else {
  idName = ProxySessionReader.getIdentifierPropertyName(init);
origin: com.fasterxml.jackson.datatype/jackson-datatype-hibernate4

String idName;
if (_mapping != null) {
  idName = _mapping.getIdentifierPropertyName(init.getEntityName());
} else {
  final SessionImplementor session = init.getSession();
origin: FasterXML/jackson-datatype-hibernate

String idName;
if (_mapping != null) {
  idName = _mapping.getIdentifierPropertyName(init.getEntityName());
} else {
  final SessionImplementor session = init.getSession();
org.hibernate.engine.spiMappinggetIdentifierPropertyName

Popular methods of Mapping

  • getIdentifierGeneratorFactory
    Allow access to the id generator factory, though this is only needed/allowed from configuration.
  • getIdentifierType
  • getReferencedPropertyType

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • JOptionPane (javax.swing)
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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