| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0 which is available at |
| http://www.eclipse.org/legal/epl-2.0, |
| or the Eclipse Distribution License v. 1.0 which is available at |
| http://www.eclipse.org/org/documents/edl-v10.php. |
| |
| SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| |
| --> |
| |
| <entity-mappings version="2.0" xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"> |
| <!-- This tests mapping static classes that cannot be weaved to test that lazy is reverted when weaving could not occur. --> |
| <entity name="DatabaseField" class="org.eclipse.persistence.internal.helper.DatabaseField" access="FIELD"> |
| <attributes> |
| <id name="name"/> |
| <one-to-one name="table" fetch="LAZY"/> |
| </attributes> |
| </entity> |
| <entity name="DatabaseTable" class="org.eclipse.persistence.internal.helper.DatabaseTable" access="FIELD"> |
| <attributes> |
| <id name="name"/> |
| <transient name="uniqueConstraints"/> |
| <transient name="indexes"/> |
| </attributes> |
| </entity> |
| </entity-mappings> |