Tabnine Logo
SessionImplementor.guessEntityName
Code IndexAdd Tabnine to your IDE (free)

How to use
guessEntityName
method
in
org.hibernate.engine.spi.SessionImplementor

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.guessEntityName (Showing top 13 results out of 315)

origin: hibernate/hibernate-orm

@Override
public String guessEntityName(Object entity) throws HibernateException {
  return delegate.guessEntityName( entity );
}
origin: hibernate/hibernate-orm

toEntityName = session.guessEntityName( value );
origin: org.jboss.seam/jboss-seam

public String guessEntityName(Object paramObject) throws HibernateException
{
 return ((SessionImplementor) delegate).guessEntityName(paramObject);
}
origin: org.hibernate.orm/hibernate-core

@Override
public String guessEntityName(Object entity) throws HibernateException {
  return delegate.guessEntityName( entity );
}
origin: riotfamily/riot

public String guessEntityName(Object entity) throws HibernateException {
  return session.guessEntityName(entity);
}
origin: com.atlassian.hibernate/hibernate.adapter

@Override
public String guessEntityName(final Object entity) throws HibernateException {
  return getSessionImplementor().guessEntityName(entity);
}
origin: org.hibernate/com.springsource.org.hibernate

private void logCannotResolveNonNullableTransientDependencies(SessionImplementor session) {
  for ( Map.Entry<Object,Set<AbstractEntityInsertAction>> entry : dependentActionsByTransientEntity.entrySet() ) {
    Object transientEntity = entry.getKey();
    String transientEntityName = session.guessEntityName( transientEntity );
    Serializable transientEntityId = session.getFactory().getEntityPersister( transientEntityName ).getIdentifier( transientEntity, session );
    String transientEntityString = MessageHelper.infoString( transientEntityName, transientEntityId );
    Set<String> dependentEntityStrings = new TreeSet<String>();
    Set<String> nonNullableTransientPropertyPaths = new TreeSet<String>();
    for ( AbstractEntityInsertAction dependentAction : entry.getValue() ) {
      dependentEntityStrings.add( MessageHelper.infoString( dependentAction.getEntityName(), dependentAction.getId() ) );
      for ( String path : dependenciesByAction.get( dependentAction ).getNonNullableTransientPropertyPaths( transientEntity ) ) {
        String fullPath = new StringBuilder( dependentAction.getEntityName().length() + path.length() + 1 )
            .append( dependentAction.getEntityName() )
            .append( '.' )
            .append( path )
            .toString();
        nonNullableTransientPropertyPaths.add( fullPath );
      }
    }
    LOG.cannotResolveNonNullableTransientDependencies(
        transientEntityString,
        dependentEntityStrings,
        nonNullableTransientPropertyPaths
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void logCannotResolveNonNullableTransientDependencies(SessionImplementor session) {
  for ( Map.Entry<Object,Set<AbstractEntityInsertAction>> entry : dependentActionsByTransientEntity.entrySet() ) {
    Object transientEntity = entry.getKey();
    String transientEntityName = session.guessEntityName( transientEntity );
    Serializable transientEntityId = session.getFactory().getEntityPersister( transientEntityName ).getIdentifier( transientEntity, session );
    String transientEntityString = MessageHelper.infoString( transientEntityName, transientEntityId );
    Set<String> dependentEntityStrings = new TreeSet<String>();
    Set<String> nonNullableTransientPropertyPaths = new TreeSet<String>();
    for ( AbstractEntityInsertAction dependentAction : entry.getValue() ) {
      dependentEntityStrings.add( MessageHelper.infoString( dependentAction.getEntityName(), dependentAction.getId() ) );
      for ( String path : dependenciesByAction.get( dependentAction ).getNonNullableTransientPropertyPaths( transientEntity ) ) {
        String fullPath = new StringBuilder( dependentAction.getEntityName().length() + path.length() + 1 )
            .append( dependentAction.getEntityName() )
            .append( '.' )
            .append( path )
            .toString();
        nonNullableTransientPropertyPaths.add( fullPath );
      }
    }
    LOG.cannotResolveNonNullableTransientDependencies(
        transientEntityString,
        dependentEntityStrings,
        nonNullableTransientPropertyPaths
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

throw new TransientPropertyValueException(
    "Not-null property references a transient value - transient instance must be saved before current operation",
    firstDependentAction.getSession().guessEntityName( firstTransientDependency ),
    firstDependentAction.getEntityName(),
    firstPropertyPath
origin: org.hibernate/com.springsource.org.hibernate.core

throw new TransientPropertyValueException(
    "Not-null property references a transient value - transient instance must be saved before current operation",
    firstDependentAction.getSession().guessEntityName( firstTransientDependency ),
    firstDependentAction.getEntityName(),
    firstPropertyPath
origin: org.hibernate/com.springsource.org.hibernate.core

throw new TransientObjectException(
    "object references an unsaved transient instance - save the transient instance before flushing: " +
    (entityName == null ? session.guessEntityName( object ) : entityName)
);
origin: org.hibernate/com.springsource.org.hibernate

throw new TransientObjectException(
    "object references an unsaved transient instance - save the transient instance before flushing: " +
    (entityName == null ? session.guessEntityName( object ) : entityName)
);
origin: org.hibernate.orm/hibernate-core

toEntityName = session.guessEntityName( value );
org.hibernate.engine.spiSessionImplementorguessEntityName

Javadoc

The guessed entity name for an entity not in an association

Popular methods of SessionImplementor

  • getFactory
    Get the creating SessionFactoryImplementor
  • getTransactionCoordinator
  • connection
  • getPersistenceContext
    Get the persistence context for this session
  • getLoadQueryInfluencers
    Get the load query influencers associated with this session.
  • isTransactionInProgress
    Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
  • getEntityPersister
    Get the EntityPersister for any instance
  • getJdbcCoordinator
  • isClosed
    Determine whether the session is closed. Provided separately from #isOpen() as this method does not
  • flush
  • getTenantIdentifier
    Match te method on org.hibernate.Session and org.hibernate.StatelessSession
  • generateEntityKey
  • getTenantIdentifier,
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • bestGuessEntityName,
  • getFlushMode,
  • getSessionFactory,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JCheckBox (javax.swing)
  • Github Copilot alternatives
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