java.lang.Object
org.hibernate.reactive.example.nativesql.Main

public class Main extends Object
Demonstrates the use of Hibernate Reactive with the CompletionStage-based API. Here we use stateless sessions and handwritten SQL.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
    • persistenceUnitName

      public static String persistenceUnitName(String[] args)
      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