Tabnine Logo
SmartPersistenceUnitInfo.getManagedPackages
Code IndexAdd Tabnine to your IDE (free)

How to use
getManagedPackages
method
in
org.springframework.orm.jpa.persistenceunit.SmartPersistenceUnitInfo

Best Java code snippets using org.springframework.orm.jpa.persistenceunit.SmartPersistenceUnitInfo.getManagedPackages (Showing top 4 results out of 315)

origin: spring-projects/spring-framework

@Override
@SuppressWarnings("rawtypes")
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
  final List<String> mergedClassesAndPackages = new ArrayList<>(info.getManagedClassNames());
  if (info instanceof SmartPersistenceUnitInfo) {
    mergedClassesAndPackages.addAll(((SmartPersistenceUnitInfo) info).getManagedPackages());
  }
  return new EntityManagerFactoryBuilderImpl(
      new PersistenceUnitInfoDescriptor(info) {
        @Override
        public List<String> getManagedClassNames() {
          return mergedClassesAndPackages;
        }
      }, properties).build();
}
origin: org.springframework/spring-orm

@Override
@SuppressWarnings("rawtypes")
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
  final List<String> mergedClassesAndPackages = new ArrayList<>(info.getManagedClassNames());
  if (info instanceof SmartPersistenceUnitInfo) {
    mergedClassesAndPackages.addAll(((SmartPersistenceUnitInfo) info).getManagedPackages());
  }
  return new EntityManagerFactoryBuilderImpl(
      new PersistenceUnitInfoDescriptor(info) {
        @Override
        public List<String> getManagedClassNames() {
          return mergedClassesAndPackages;
        }
      }, properties).build();
}
origin: apache/servicemix-bundles

@Override
@SuppressWarnings("rawtypes")
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
  final List<String> mergedClassesAndPackages = new ArrayList<>(info.getManagedClassNames());
  if (info instanceof SmartPersistenceUnitInfo) {
    mergedClassesAndPackages.addAll(((SmartPersistenceUnitInfo) info).getManagedPackages());
  }
  return new EntityManagerFactoryBuilderImpl(
      new PersistenceUnitInfoDescriptor(info) {
        @Override
        public List<String> getManagedClassNames() {
          return mergedClassesAndPackages;
        }
      }, properties).build();
}
origin: apache/servicemix-bundles

@SuppressWarnings("rawtypes")
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
  Ejb3Configuration cfg = new Ejb3Configuration();
  if (info instanceof SmartPersistenceUnitInfo) {
    for (String managedPackage : ((SmartPersistenceUnitInfo) info).getManagedPackages()) {
      cfg.addPackage(managedPackage);
    }
  }
  Ejb3Configuration configured = cfg.configure(info, properties);
  return (configured != null ? configured.buildEntityManagerFactory() : null);
}
org.springframework.orm.jpa.persistenceunitSmartPersistenceUnitInfogetManagedPackages

Javadoc

Return a list of managed Java packages, to be introspected by the persistence provider. Typically found through scanning but not exposable through #getManagedClassNames().

Popular methods of SmartPersistenceUnitInfo

  • setPersistenceProviderPackageName
    Set the persistence provider's own package name, for exclusion from class transformation.
  • getProperties

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top PhpStorm plugins
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