Skip to content

io microsphere hibernate constants PropertyConstants

github-actions[bot] edited this page Jul 23, 2026 · 8 revisions

PropertyConstants

Type: Interface | Module: microsphere-hibernate-core | Package: io.microsphere.hibernate.constants | Since: 1.0.0

Source: microsphere-hibernate-core/src/main/java/io/microsphere/hibernate/constants/PropertyConstants.java

Overview

The interface to declare the property constants of Microsphere Hibernate

Example Usage

`// Enable Microsphere Hibernate via system property
  System.setProperty(MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_NAME, "true");

  // Read the enabled flag
  boolean enabled = Boolean.parseBoolean(
      System.getProperty(MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_NAME,
                         DEFAULT_MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_VALUE));

  // Use the property name prefix to build custom property names
  String customProperty = MICROSPHERE_HIBERNATE_PROPERTY_NAME_PREFIX + "myFeature.enabled";
`

Declaration

public interface PropertyConstants

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.9-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Examples

// Enable Microsphere Hibernate via system property
  System.setProperty(MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_NAME, "true");

  // Read the enabled flag
  boolean enabled = Boolean.parseBoolean(
      System.getProperty(MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_NAME,
                         DEFAULT_MICROSPHERE_HIBERNATE_ENABLED_PROPERTY_VALUE));

  // Use the property name prefix to build custom property names
  String customProperty = MICROSPHERE_HIBERNATE_PROPERTY_NAME_PREFIX + "myFeature.enabled";

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-hibernate-core</artifactId>
    <version>${microsphere-hibernate.version}</version>
</dependency>

Tip: Use the BOM (microsphere-hibernate-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.hibernate.constants.PropertyConstants;

This documentation was auto-generated from the source code of microsphere-hibernate.

Clone this wiki locally