Tabnine Logo
Mappings.addUniquePropertyReference
Code IndexAdd Tabnine to your IDE (free)

How to use
addUniquePropertyReference
method
in
org.hibernate.cfg.Mappings

Best Java code snippets using org.hibernate.cfg.Mappings.addUniquePropertyReference (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

@Override
public void addUniquePropertyReference(String referencedClass, String propertyName) {
  super.addUniquePropertyReference( referencedClass, propertyName );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

String propertyRef = toOne.getReferencedPropertyName();
if ( propertyRef != null ) {
  mappings.addUniquePropertyReference( toOne.getReferencedEntityName(), propertyRef );
origin: org.hibernate/com.springsource.org.hibernate

mappings.addUniquePropertyReference( ownerEntity.getEntityName(), syntheticPropertyName );
origin: org.hibernate/com.springsource.org.hibernate.core

mappings.addUniquePropertyReference( ownerEntity.getEntityName(), syntheticPropertyName );
origin: org.hibernate/com.springsource.org.hibernate

String propertyRef = toOne.getReferencedPropertyName();
if ( propertyRef != null ) {
  mappings.addUniquePropertyReference( toOne.getReferencedEntityName(), propertyRef );
origin: org.hibernate/com.springsource.org.hibernate.core

String propertyRef = toOne.getReferencedPropertyName();
if ( propertyRef != null ) {
  mappings.addUniquePropertyReference( toOne.getReferencedEntityName(), propertyRef );
origin: hibernate/hibernate

private static Property createProperty(final Value value, final String propertyName,
    final String className, final Element subnode, final Mappings mappings,
    java.util.Map inheritedMetas) throws MappingException {
  value.setTypeUsingReflection( className, propertyName );
  // this is done here 'cos we might only know the type here (ugly!)
  // TODO: improve this a lot:
  if ( value instanceof ToOne ) {
    ToOne toOne = (ToOne) value;
    String propertyRef = toOne.getReferencedPropertyName();
    if ( propertyRef != null ) {
      mappings.addUniquePropertyReference( toOne.getReferencedEntityName(), propertyRef );
    }
  }
  else if ( value instanceof Collection ) {
    Collection coll = (Collection) value;
    String propertyRef = coll.getReferencedPropertyName();
    // not necessarily a *unique* property reference
    if ( propertyRef != null ) {
      mappings.addPropertyReference( coll.getOwnerEntityName(), propertyRef );
    }
  }
  value.createForeignKey();
  Property prop = new Property();
  prop.setValue( value );
  bindProperty( subnode, prop, mappings, inheritedMetas );
  return prop;
}
origin: org.hibernate/com.springsource.org.hibernate

mappings.addUniquePropertyReference( referencedEntity.getEntityName(), referencedPropertyName );
origin: org.hibernate/com.springsource.org.hibernate.core

mappings.addUniquePropertyReference( referencedEntity.getEntityName(), referencedPropertyName );
origin: ManyDesigns/Portofino

mappings.addUniquePropertyReference(referencedClass.getEntityName(), syntheticPropertyName);
mappings.addPropertyReferencedAssociation(
    referencedClass.getEntityName(), firstPropertyName, syntheticPropertyName);
origin: com.manydesigns/portofino-database

mappings.addUniquePropertyReference(referencedClass.getEntityName(), syntheticPropertyName);
mappings.addPropertyReferencedAssociation(
    referencedClass.getEntityName(), firstPropertyName, syntheticPropertyName);
origin: org.hibernate/com.springsource.org.hibernate.core

mappings.addUniquePropertyReference(
    value.getReferencedEntityName(),
    propertyRef
origin: org.hibernate/com.springsource.org.hibernate

mappings.addUniquePropertyReference(
    value.getReferencedEntityName(),
    propertyRef
org.hibernate.cfgMappingsaddUniquePropertyReference

Javadoc

Adds a property reference binding to this repository where said proeprty reference is marked as unique.

Popular methods of Mappings

  • addClass
    Add entity mapping metadata.
  • addImport
    Adds an import (HQL entity rename) to the repository.
  • addTable
    Adds table metadata to this repository returning the created metadata instance.
  • getCatalogName
    Returns the currently bound default catalog name.
  • getClass
    Retrieves the entity mapping metadata for the given entity name.
  • getSchemaName
    Returns the currently bound default schema name.
  • addCollection
    Add collection mapping metadata to this repository.
  • addSecondPass
    Adds a second pass.
  • addTableBinding
    Adds a table binding to this repository.
  • getDefaultAccess
    Get the current default property access style.
  • isAutoImport
    Determine whether auto importing of entity names is currently enabled.
  • addDenormalizedTable
    Adds a 'denormalized table' to this repository.
  • isAutoImport,
  • addDenormalizedTable,
  • addFilterDefinition,
  • addTypeDef,
  • getObjectNameNormalizer,
  • setAutoImport,
  • addColumnBinding,
  • addPropertyReference,
  • addQuery

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ImageIO (javax.imageio)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now