Codota Logo
SessionImplementor.createEntityGraph
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain SessionImplementor
private void myMethod () {
SessionImplementor s =
  • Codota IconEntityManager entityManager;entityManager.unwrap(SessionImplementor.class)
  • Codota IconFlushEntityEvent flushEntityEvent;flushEntityEvent.getSession()
  • Codota IconLazyInitializer lazyInitializer;lazyInitializer.getSession()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

@Override
public RootGraphImplementor<?> createEntityGraph(String graphName) {
  return delegate.createEntityGraph( graphName );
}
origin: hibernate/hibernate-orm

@Override
public <T> RootGraphImplementor<T> createEntityGraph(Class<T> rootType) {
  return delegate.createEntityGraph( rootType );
}
origin: hibernate/hibernate-orm

@SuppressWarnings("unchecked")
private static <T> EntityGraph<T> merge(SessionImplementor session, Class<T> rootType, Object... graphs) {
  RootGraphImplementor<T> merged = session.createEntityGraph( rootType );
  if ( graphs != null ) {
    for ( Object graph : graphs ) {
      merged.merge( (GraphImplementor<T>) graph );
    }
  }
  return merged;
}
origin: hibernate/hibernate-orm

private static <T> RootGraphImplementor<T> parse(
    final Class<T> rootType,
    final CharSequence graphText,
    final SessionImplementor session) {
  if ( graphText == null ) {
    return null;
  }
  final RootGraphImplementor<T> graph = session.createEntityGraph( rootType );
  parseInto( (GraphImplementor<T>) graph, graphText, session.getSessionFactory() );
  return graph;
}
origin: hibernate/hibernate-orm

@Test
public void testHHH10378IsNotFixedYet() {
  EntityManager entityManager = getOrCreateEntityManager();
  RootGraphImplementor<GraphParsingTestEntity> graph = ( (SessionImplementor) entityManager ).createEntityGraph(
      GraphParsingTestEntity.class );
  final SubGraphImplementor<GraphParsingTestSubentity> subGraph = graph.addSubGraph(
      "linkToOne",
      GraphParsingTestSubentity.class
  );
  assertEquals( subGraph.getGraphedType().getJavaType(), GraphParsingTestSubentity.class );
  final AttributeNodeImplementor<Object> subTypeAttrNode = subGraph.addAttributeNode( "sub" );
  assert subTypeAttrNode != null;
}
origin: org.hibernate.orm/hibernate-core

@Override
public <T> RootGraphImplementor<T> createEntityGraph(Class<T> rootType) {
  return delegate.createEntityGraph( rootType );
}
origin: org.hibernate.orm/hibernate-core

@Override
public RootGraphImplementor<?> createEntityGraph(String graphName) {
  return delegate.createEntityGraph( graphName );
}
origin: org.hibernate.orm/hibernate-core

@SuppressWarnings("unchecked")
private static <T> EntityGraph<T> merge(SessionImplementor session, Class<T> rootType, Object... graphs) {
  RootGraphImplementor<T> merged = session.createEntityGraph( rootType );
  if ( graphs != null ) {
    for ( Object graph : graphs ) {
      merged.merge( (GraphImplementor<T>) graph );
    }
  }
  return merged;
}
origin: org.hibernate.orm/hibernate-core

private static <T> RootGraphImplementor<T> parse(
    final Class<T> rootType,
    final CharSequence graphText,
    final SessionImplementor session) {
  if ( graphText == null ) {
    return null;
  }
  final RootGraphImplementor<T> graph = session.createEntityGraph( rootType );
  parseInto( (GraphImplementor<T>) graph, graphText, session.getSessionFactory() );
  return graph;
}
org.hibernate.engine.spiSessionImplementorcreateEntityGraph

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,
  • guessEntityName,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTable (javax.swing)
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