-
Notifications
You must be signed in to change notification settings - Fork 1
io microsphere hibernate constants PropertyConstants
github-actions[bot] edited this page Jul 23, 2026
·
8 revisions
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
The interface to declare the property constants of Microsphere Hibernate
`// 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";
`
public interface PropertyConstantsAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.2.9-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
// 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";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 io.microsphere.hibernate.constants.PropertyConstants;This documentation was auto-generated from the source code of microsphere-hibernate.