source: contrib/MailArchiver/sources/src/serpro/mailarchiver/domain/metaarchive/Entity.jdo @ 6785

Revision 6785, 3.9 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado codigo do MailArchiver?. Documentação na subpasta DOCS.

Line 
1<?xml version="1.0"?>
2<!DOCTYPE orm PUBLIC
3    "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 3.1//EN"
4    "http://java.sun.com/dtd/jdo_3_1.dtd">
5
6<!--
7/**
8 * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface.
9 * Copyright (C) 2012  Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Affero General Public License as
13 * published by the Free Software Foundation, either version 3 of the
14 * License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU Affero General Public License for more details.
20 *
21 * You should have received a copy of the GNU Affero General Public License
22 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 */
24
25/******************************************************************************\
26*
27*  This product was developed by
28*
29*        SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO),
30*
31*  a government company established under Brazilian law (5.615/70),
32*  at Department of Development of Porto Alegre.
33*
34\******************************************************************************/
35-->
36
37<jdo schema="METAARCHIVE">
38    <package name="serpro.mailarchiver.domain.metaarchive">
39
40        <class name="Entity"
41            persistence-modifier="persistence-capable"
42            table="ENTITY"
43            identity-type="application">
44
45            <inheritance strategy="new-table">
46                <discriminator strategy="value-map" value="entity">
47                    <column name="DISCRIMINATOR" jdbc-type="VARCHAR" length="40" allows-null="false"/>
48                </discriminator>
49            </inheritance>
50
51            <field name="oid" persistence-modifier="persistent" primary-key="true" value-strategy="uuid">
52                <column name="OID" jdbc-type="VARCHAR" length="36" allows-null="false"/>
53                <extension vendor-name="datanucleus" key="strategy-when-notnull" value="false"/>
54            </field>
55
56            <field name="startLine" persistence-modifier="persistent">
57                <column name="START_LINE" jdbc-type="INTEGER" allows-null="true"/>
58            </field>
59
60            <field name="separatorLine" persistence-modifier="persistent">
61                <column name="SEPARATOR_LINE" jdbc-type="INTEGER" allows-null="true"/>
62            </field>
63
64            <field name="endLine" persistence-modifier="persistent">
65                <column name="END_LINE" jdbc-type="INTEGER" allows-null="true"/>
66            </field>
67
68            <field name="size" persistence-modifier="persistent">
69                <column name="ENTITY_SIZE" jdbc-type="INTEGER" allows-null="true"/>
70            </field>
71
72            <field name="fields" persistence-modifier="persistent" mapped-by="entity">
73                <collection element-type="serpro.mailarchiver.domain.metaarchive.Field" dependent-element="true"/>
74                <order mapped-by="entityIdx"/>
75            </field>
76
77            <field name="body" persistence-modifier="persistent" mapped-by="entity" dependent="true">
78                <extension vendor-name="datanucleus" key="implementation-classes"
79                    value="serpro.mailarchiver.domain.metaarchive.TextBody,
80                           serpro.mailarchiver.domain.metaarchive.BinaryBody,
81                           serpro.mailarchiver.domain.metaarchive.Multipart,
82                           serpro.mailarchiver.domain.metaarchive.MessageBody"/>
83            </field>
84
85            <field name="readCache" persistence-modifier="none"/>
86            <field name="dirtyCache" persistence-modifier="none"/>
87
88        </class>
89
90    </package>
91</jdo>
Note: See TracBrowser for help on using the repository browser.