001    // Copyright 2011 The Apache Software Foundation
002    //
003    // Licensed under the Apache License, Version 2.0 (the "License");
004    // you may not use this file except in compliance with the License.
005    // You may obtain a copy of the License at
006    //
007    // http://www.apache.org/licenses/LICENSE-2.0
008    //
009    // Unless required by applicable law or agreed to in writing, software
010    // distributed under the License is distributed on an "AS IS" BASIS,
011    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012    // See the License for the specific language governing permissions and
013    // limitations under the License.
014    
015    package org.apache.tapestry5.jpa;
016    
017    /**
018     * Configuration symbols, for use with contributions to {@link org.apache.tapestry5.ioc.services.ApplicationDefaults}.
019     *
020     * @since 5.3
021     */
022    public class JpaSymbols
023    {
024        public static final String PROVIDE_ENTITY_VALUE_ENCODERS = "tapestry.jpa.provide-entity-value-encoders";
025    
026        /**
027         * If "true", then JPA will be started up at application launch, rather than lazily.
028         * 
029         * @since 5.3
030         */
031        public static final String EARLY_START_UP = "tapestry.jpa.early-startup";
032    
033        /**
034         * If true, then "entity" persistence strategy is used to store JPA entities as
035         * {@code Session State Objects}.
036         * 
037         * @since 5.3
038         */
039        public static final String ENTITY_SESSION_STATE_PERSISTENCE_STRATEGY_ENABLED = "tapestry.jpa.entity-session-state-persistence-strategy-enabled";
040        
041        /**
042         * The location of the persistence configuration file, located on the classpath. This
043         * will normally be <code>/META-INF/persistence.xml</code>.
044         * 
045         * @since 5.3
046         */
047        public static final String PERSISTENCE_DESCRIPTOR = "tapestry.jpa.persistence-descriptor";
048    }