| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. 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. For additional information regarding | |
| copyright in this work, please see the NOTICE file in the top level | |
| directory of this distribution. | |
| --> | |
| <persistence version="3.2" | |
| xmlns="https://jakarta.ee/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd"> | |
| <persistence-unit name="RollerPU" transaction-type="RESOURCE_LOCAL"> | |
| <!-- DB configuration done in roller-custom.properties (see Install guide) | |
| Avoiding DB configuration here to allow the same persistence.xml to be used between | |
| testing and prod (which have different DB configuration) | |
| --> | |
| <!-- Don't put trailing spaces after the .orm.xml, Hibernate doesn't strip them and | |
| hence reports can't-find-the-mapping-file errors --> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogBookmark.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogEntryComment.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogEntryAttribute.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogBookmarkFolder.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogHitCount.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/PingQueueEntry.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/PingTarget.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/UserRole.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/RuntimeConfigProperty.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/TaskLock.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/User.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogCategory.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogEntry.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogEntryTagAggregate.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogEntryTag.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogTemplate.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/ObjectPermission.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/WeblogPermission.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/Weblog.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/MediaFile.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/MediaFileTag.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/MediaFileDirectory.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/AutoPing.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/weblogger/pojos/CustomTemplateRendition.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/planet/pojos/Planet.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/planet/pojos/PlanetGroup.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/planet/pojos/Subscription.orm.xml</mapping-file> | |
| <mapping-file>org/apache/roller/planet/pojos/SubscriptionEntry.orm.xml</mapping-file> | |
| <properties> | |
| <!-- Background search index operations read comments on their own threads. | |
| If one reads a comment just before another thread deletes it, the | |
| shared cache can hold the deleted comment after the delete commits, | |
| so lookups by id return it (ROL-2185). Comments are always read | |
| fresh from the database instead. --> | |
| <property name="eclipselink.cache.shared.WeblogEntryComment" value="false"/> | |
| </properties> | |
| </persistence-unit> | |
| </persistence> |