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

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

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

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.jpaJpaInspectorConfigsetHideTransients

Javadoc

Sets whether the Inspector returns Transient properties as hidden="true". False by default.

There is not a firm relationship between whether a field should be persisted by JPA, and whether it should appear in the UI. Some architectures prefer Transient fields to be hidden in the UI by default, but some prefer them to be visible. The latter applies both to 'synthetic' fields such as getAge that calculates based off a persisted getDateOfBirth, and also to overridden JPA fields (which generally must be marked Transient in the subclass).

Popular methods of JpaInspectorConfig

  • <init>
  • setHideIds
    Sets whether the Inspector returns Id properties as hidden="true". True by default. JPA recommends u
  • 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

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best IntelliJ 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