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="Message" |
---|
41 | persistence-modifier="persistence-capable" |
---|
42 | identity-type="application"> |
---|
43 | |
---|
44 | <inheritance strategy="superclass-table"> |
---|
45 | <discriminator value="message"/> |
---|
46 | </inheritance> |
---|
47 | |
---|
48 | <field name="folder" persistence-modifier="persistent"> |
---|
49 | <column name="FOLDER_OID" jdbc-type="VARCHAR" length="36" allows-null="true"/> |
---|
50 | </field> |
---|
51 | |
---|
52 | <field name="folderIdx" persistence-modifier="persistent"> |
---|
53 | <column name="FOLDER_IDX" jdbc-type="INTEGER" allows-null="true"/> |
---|
54 | </field> |
---|
55 | |
---|
56 | <field name="tags" persistence-modifier="persistent" table="TAG"> |
---|
57 | <collection element-type="java.lang.String" dependent-element="true"/> |
---|
58 | <join> |
---|
59 | <column name="ENTITY_OID" jdbc-type="VARCHAR" length="36" allows-null="false"/> |
---|
60 | </join> |
---|
61 | <element> |
---|
62 | <column name="TAG_VALUE" jdbc-type="VARCHAR" length="100" allows-null="true"/> |
---|
63 | </element> |
---|
64 | </field> |
---|
65 | |
---|
66 | <field name="queryCandidatesSet" persistence-modifier="persistent"> |
---|
67 | <column name="QUERY_CANDIDATES_SET" jdbc-type="BIGINT" allows-null="true"/> |
---|
68 | </field> |
---|
69 | |
---|
70 | </class> |
---|
71 | |
---|
72 | </package> |
---|
73 | </jdo> |
---|