com.holonplatform.datastore.jpa.internal

## Class EntityTargetCache

- java.lang.Object
- - com.holonplatform.datastore.jpa.internal.EntityTargetCache

- All Implemented Interfaces:
    Serializable

      public final class EntityTargetCache
      extends Object
      implements Serializable

  Resolved `DataTarget` names to JPA entity class cache.
  Since:
    5.0.0
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<Class<?>>` | `resolveEntityClass(javax.persistence.EntityManagerFactory entityManagerFactory, String name)` Try to obtain JPA Entity mapping class from given path name using given ClassLoader

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### resolveEntityClass

          public static Optional<Class<?>> resolveEntityClass(javax.persistence.EntityManagerFactory entityManagerFactory,
                                                              String name)

      Try to obtain JPA Entity mapping class from given path name using given ClassLoader
      Parameters:
        `entityManagerFactory` - EntityManagerFactory to use
        `name` - Path name (not null)
      Returns:
        Entity class, or `null` target was null

Copyright © 2019 The Holon Platform. All rights reserved.