THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Symbol | Default | Description |
---|---|---|
JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERS | true | Whether entity value encoders will be provided automatically. See Using Select with a List. |
JpaSymbols.EARLY_START_UP | true | Whether JPA will be started up at application launch, rather than lazily. |
JpaSymbols.ENTITY_SESSION_STATE_PERSISTENCE_STRATEGY_ENABLED | true | Whether the "entity" persistence strategy is used to store JPA entities as |
JpaSymbols.PERSISTENCE_DESCRIPTOR | /META-INF/persistence.xml | The location of the persistence configuration file, located on the classpath |
...
Alternatively, you can use the @Inject annotation to get the EntityManager injected into a page or component, as shown in the following example.
Code Block | ||||
---|---|---|---|---|
| ||||
public class CreateAddress { @Inject private EntityManager entityManager; @Property private Address address; @CommitAfter void onSuccess() { entityManager.persist(address); } } |
...