Class Main
java.lang.Object
org.hibernate.reactive.example.nativesql.Main
Demonstrates the use of Hibernate Reactive with the
CompletionStage
-based
API.
Here we use stateless sessions and handwritten SQL.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
persistenceUnitName
(String[] args) Return the persistence unit name to use in the example.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
persistenceUnitName
Return the persistence unit name to use in the example.- Parameters:
args
- the first element is the persistence unit name if present- Returns:
- the selected persistence unit name or the default one
-