congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PojoEntityTuplizer.getEntityName
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntityName
method
in
org.hibernate.tuple.entity.PojoEntityTuplizer

Best Java code snippets using org.hibernate.tuple.entity.PojoEntityTuplizer.getEntityName (Showing top 10 results out of 315)

origin: hibernate/hibernate-orm

@Override
public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) {
  if ( entityInstance == null ) {
    return getEntityName();
  }
  final Class concreteEntityClass = entityInstance.getClass();
  if ( concreteEntityClass == getMappedClass() ) {
    return getEntityName();
  }
  else {
    String entityName = getEntityMetamodel().findEntityNameByEntityClass( concreteEntityClass );
    if ( entityName == null ) {
      throw new HibernateException(
          "Unable to resolve entity name from Class [" + concreteEntityClass.getName() + "]"
              + " expected instance/subclass of [" + getEntityName() + "]"
      );
    }
    return entityName;
  }
}
origin: hibernate/hibernate-orm

  if ( !proxyInterface.isInterface() ) {
    throw new MappingException(
        "proxy must be either an interface, or the class itself: " + getEntityName()
    );
try {
  pf.postInstantiate(
      getEntityName(),
      mappedClass,
      proxyInterfaces,
  LOG.unableToCreateProxyFactory( getEntityName(), he );
  pf = null;
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * {@inheritDoc}
 */
public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) {
  final Class concreteEntityClass = entityInstance.getClass();
  if ( concreteEntityClass == getMappedClass() ) {
    return getEntityName();
  }
  else {
    String entityName = getEntityMetamodel().findEntityNameByEntityClass( concreteEntityClass );
    if ( entityName == null ) {
      throw new HibernateException(
          "Unable to resolve entity name from Class [" + concreteEntityClass.getName() + "]"
              + " expected instance/subclass of [" + getEntityName() + "]"
      );
    }
    return entityName;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * {@inheritDoc}
 */
public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) {
  final Class concreteEntityClass = entityInstance.getClass();
  if ( concreteEntityClass == getMappedClass() ) {
    return getEntityName();
  }
  else {
    String entityName = getEntityMetamodel().findEntityNameByEntityClass( concreteEntityClass );
    if ( entityName == null ) {
      throw new HibernateException(
          "Unable to resolve entity name from Class [" + concreteEntityClass.getName() + "]"
              + " expected instance/subclass of [" + getEntityName() + "]"
      );
    }
    return entityName;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * {@inheritDoc}
 */
@Override
public void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session) {
  if ( isInstrumented() ) {
    Set lazyProps = lazyPropertiesAreUnfetched && getEntityMetamodel().hasLazyProperties() ?
        lazyPropertyNames : null;
    //TODO: if we support multiple fetch groups, we would need
    //      to clone the set of lazy properties!
    FieldInterceptionHelper.injectFieldInterceptor( entity, getEntityName(), lazyProps, session );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * {@inheritDoc}
 */
@Override
public void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session) {
  if ( isInstrumented() ) {
    Set lazyProps = lazyPropertiesAreUnfetched && getEntityMetamodel().hasLazyProperties() ?
        lazyPropertyNames : null;
    //TODO: if we support multiple fetch groups, we would need
    //      to clone the set of lazy properties!
    FieldInterceptionHelper.injectFieldInterceptor( entity, getEntityName(), lazyProps, session );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

  if ( !proxyInterface.isInterface() ) {
    throw new MappingException(
        "proxy must be either an interface, or the class itself: " + getEntityName()
    );
try {
  pf.postInstantiate(
      getEntityName(),
      mappedClass,
      proxyInterfaces,
  LOG.unableToCreateProxyFactory(getEntityName(), he);
  pf = null;
origin: org.hibernate/com.springsource.org.hibernate.core

  if ( !proxyInterface.isInterface() ) {
    throw new MappingException(
        "proxy must be either an interface, or the class itself: " + getEntityName()
    );
try {
  pf.postInstantiate(
      getEntityName(),
      mappedClass,
      proxyInterfaces,
  LOG.unableToCreateProxyFactory(getEntityName(), he);
  pf = null;
origin: org.hibernate/com.springsource.org.hibernate

  if ( ! proxyInterface.isInterface() ) {
    throw new MappingException(
        "proxy must be either an interface, or the class itself: " + getEntityName()
    );
try {
  pf.postInstantiate(
      getEntityName(),
      mappedClass,
      proxyInterfaces,
  LOG.unableToCreateProxyFactory(getEntityName(), he);
  pf = null;
origin: org.hibernate/com.springsource.org.hibernate.core

  if ( ! proxyInterface.isInterface() ) {
    throw new MappingException(
        "proxy must be either an interface, or the class itself: " + getEntityName()
    );
try {
  pf.postInstantiate(
      getEntityName(),
      mappedClass,
      proxyInterfaces,
  LOG.unableToCreateProxyFactory(getEntityName(), he);
  pf = null;
org.hibernate.tuple.entityPojoEntityTuplizergetEntityName

Popular methods of PojoEntityTuplizer

  • buildProxyFactory
  • buildProxyFactoryInternal
  • getEntityMetamodel
  • getMappedClass
  • getPropertyValuesWithOptimizer
  • setPropertyValuesWithOptimizer
  • shouldGetAllProperties
  • getGetter
  • getPropertyAccessor
  • getSetter
  • isInstrumented
  • getFactory
  • isInstrumented,
  • getFactory,
  • getPropertyValues

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Best plugins for Eclipse
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