Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added descriptions of configuration symbols

...

As you can see, you may add as many packages as you wish.

Configuration Settings

The following Several aspects of Tapestry-jpa can be configured customized in your application module (usually AppModule.java), just like other Tapestry configuration symbols.

SymbolDefaultDescription
JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERStrue Whether entity value encoders will be provided automatically. See Using Select with a List.
JpaSymbols.EARLY_START_UPtrue Whether JPA will be started up at application launch, rather than lazily.
JpaSymbols.ENTITY_SESSION_STATE_PERSISTENCE_STRATEGY_ENABLEDtrue 

Whether the "entity" persistence strategy is used to store JPA entities as Session State Objects.

JpaSymbols.PERSISTENCE_DESCRIPTOR/META-INF/persistence.xml 

...

The location of the persistence configuration file, located on the classpath

Injecting the EntityManager

...