Tabnine Logo
JpaInspectorConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
JpaInspectorConfig
in
org.metawidget.inspector.jpa

Best Java code snippets using org.metawidget.inspector.jpa.JpaInspectorConfig (Showing top 4 results out of 315)

origin: org.metawidget.modules/metawidget-all

public JpaInspector() {
  this( new JpaInspectorConfig() );
}
origin: org.metawidget.modules/metawidget-all

public JpaInspector( JpaInspectorConfig config ) {
  super( config );
  mHideIds = config.isHideIds();
  mHideVersions = config.isHideVersions();
  mHideTransients = config.isHideTransients();
}
origin: org.jboss.forge.addon/scaffold-spi

/**
* Setup the composite inspector. This is not done at construction time, since Metawidget inspectors cache trait
* lookups, and hence report incorrect values when underlying Java classes change in projects. Therefore, the
* composite inspector setup and configuration is perform explicitly upon every inspection.
*/
private void setupCompositeInspector()
{
 ForgePropertyStyleConfig forgePropertyStyleConfig = new ForgePropertyStyleConfig();
 forgePropertyStyleConfig.setProject(this.project);
 ForgeInspectorConfig forgeInspectorConfig = new ForgeInspectorConfig();
 forgeInspectorConfig.setProject(this.project);
 forgeInspectorConfig.setPropertyStyle(new ForgePropertyStyle(forgePropertyStyleConfig));
 PropertyTypeInspector propertyTypeInspector = new PropertyTypeInspector(forgeInspectorConfig);
 ForgeInspector forgeInspector = new ForgeInspector(forgeInspectorConfig);
 JpaInspectorConfig jpaInspectorConfig = new JpaInspectorConfig();
 jpaInspectorConfig.setHideIds(true);
 jpaInspectorConfig.setHideVersions(true);
 jpaInspectorConfig.setHideTransients(true);
 jpaInspectorConfig.setPropertyStyle(new ForgePropertyStyle(forgePropertyStyleConfig));
 JpaInspector jpaInspector = new JpaInspector(jpaInspectorConfig);
 BeanValidationInspector beanValidationInspector = new BeanValidationInspector(forgeInspectorConfig);
 CompositeInspectorConfig compositeInspectorConfig = new CompositeInspectorConfig();
 compositeInspectorConfig.setInspectors(propertyTypeInspector, forgeInspector, jpaInspector,
      beanValidationInspector);
 compositeInspector = new CompositeInspector(compositeInspectorConfig);
}
origin: org.jboss.forge/forge-scaffoldx-api

/**
* Setup the composite inspector. This is not done at construction time, since Metawidget inspectors cache trait
* lookups, and hence report incorrect values when underlying Java classes change in projects. Therefore, the
* composite inspector setup and configuration is perform explicitly upon every inspection.
*/
private void setupCompositeInspector()
{
 ForgePropertyStyleConfig forgePropertyStyleConfig = new ForgePropertyStyleConfig();
 forgePropertyStyleConfig.setProject(this.project);
 ForgeInspectorConfig forgeInspectorConfig = new ForgeInspectorConfig();
 forgeInspectorConfig.setProject(this.project);
 forgeInspectorConfig.setPropertyStyle(new ForgePropertyStyle(forgePropertyStyleConfig));
 PropertyTypeInspector propertyTypeInspector = new PropertyTypeInspector(forgeInspectorConfig);
 ForgeInspector forgeInspector = new ForgeInspector(forgeInspectorConfig);
 JpaInspectorConfig jpaInspectorConfig = new JpaInspectorConfig();
 jpaInspectorConfig.setHideIds(true);
 jpaInspectorConfig.setHideVersions(true);
 jpaInspectorConfig.setHideTransients(true);
 jpaInspectorConfig.setPropertyStyle(new ForgePropertyStyle(forgePropertyStyleConfig));
 JpaInspector jpaInspector = new JpaInspector(jpaInspectorConfig);
 BeanValidationInspector beanValidationInspector = new BeanValidationInspector(forgeInspectorConfig);
 CompositeInspectorConfig compositeInspectorConfig = new CompositeInspectorConfig();
 compositeInspectorConfig.setInspectors(propertyTypeInspector, forgeInspector, jpaInspector,
      beanValidationInspector);
 compositeInspector = new CompositeInspector(compositeInspectorConfig);
}
org.metawidget.inspector.jpaJpaInspectorConfig

Javadoc

Configures a JpaInspector prior to use. Once instantiated, Inspectors are immutable.

Most used methods

  • <init>
  • setHideIds
    Sets whether the Inspector returns Id properties as hidden="true". True by default. JPA recommends u
  • setHideTransients
    Sets whether the Inspector returns Transient properties as hidden="true". False by default. There is
  • setHideVersions
    Sets whether the Inspector returns Version properties as hidden="true". True by default. JPA uses th
  • setPropertyStyle
    Overridden to return a JpaInspectorConfig, as part of a fluent interface.
  • isHideIds
  • isHideTransients
  • isHideVersions

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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