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

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

Best Java code snippets using org.metawidget.inspector.jpa.JpaInspectorConfig.setHideIds (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.jpaJpaInspectorConfigsetHideIds

Javadoc

Sets whether the Inspector returns Id properties as hidden="true". True by default.

JPA recommends using synthetic ids, so generally they don't appear in the UI.

Popular methods of JpaInspectorConfig

  • <init>
  • 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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
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