------ Onami-Persist vs. Guice-Persist ------ The Apache Onami developers team ------ 2014 ~~ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ Onami-Persist vs. Guice-Persist is inspired and based upon . Most of the concepts and ideas have been adapted and/or reused; * <<>> as the life cycle manager for <<>>; * <<>> for spanning a <<>> around a request; * <<>>e for starting and stopping the entire persistence engine; * <<<@Transactional>>> annotation on methods to span a transaction around the method. [] The most notable changes to : * Integrated support for multiple persistence units, JTA and custom annotation; * <<>> cannot be injected. Instead an <<>> has to be injected ({{{./emProvider.html}details}}); * <<<@Transactional>>> annotation allows to specify which persistence units are involved in the transaction; * <<>> has a new method <<>>; * Retrieving an <<>> does not start a <<>>. Instead it will throw an Exception if the <<>> is not active; * <<>> can be restarted after it has been stopped.