Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 771470aebabd83148f820ae3d7f95a34212dfe49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
     Copyright (c) 2008, 2010  Oracle. 
     All rights reserved.  This program and the accompanying materials are 
     made available under the terms of the Eclipse Public License v1.0 which 
     accompanies this distribution, and is available at 
     http://www.eclipse.org/legal/epl-v10.html
     
     Contributors: 
     	Oracle - initial API and implementation
 -->

<plugin>
	
	<extension
		point="org.eclipse.core.contenttype.contentTypes">
		
		<content-type
			id="org.eclipse.jpt.eclipselink.core.content.orm"
			name="%ECLIPSELINK_ORM_XML_CONTENT"
			base-type="org.eclipse.jpt.core.content.mappingFile">
			<describer
				class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2">
				<parameter 
					name="element" 
					value="{http://www.eclipse.org/eclipselink/xsds/persistence/orm}entity-mappings"/>
			</describer>
		</content-type>
		
	</extension>
	
	
	<extension
		point="org.eclipse.jpt.core.jpaPlatforms">
		
		<jpaPlatform
			id="org.eclipse.eclipselink.platform"
            factoryClass="org.eclipse.jpt.eclipselink.core.internal.EclipseLinkJpaPlatformFactory"
			label="%ECLIPSELINK1_0_x_PLATFORM"
			jpaFacetVersion="1.0">
		</jpaPlatform>
	    
	    <jpaPlatform
	        id="eclipselink1_1"
	        factoryClass="org.eclipse.jpt.eclipselink.core.internal.v1_1.EclipseLink1_1JpaPlatformFactory"
	        label="%ECLIPSELINK1_1_x_PLATFORM"
	        jpaFacetVersion="1.0">
	    </jpaPlatform>
	    
	    <jpaPlatform
			id="eclipselink1_2"
			factoryClass="org.eclipse.jpt.eclipselink.core.internal.v1_2.EclipseLink1_2JpaPlatformFactory"
			label="%ECLIPSELINK1_2_x_PLATFORM"
			jpaFacetVersion="1.0">
		</jpaPlatform>
		
	    <jpaPlatform
	        id="eclipselink2_0"
	        factoryClass="org.eclipse.jpt.eclipselink.core.internal.v2_0.EclipseLink2_0JpaPlatformFactory"
	        label="%ECLIPSELINK2_0_x_PLATFORM"
	        jpaFacetVersion="2.0">
	    </jpaPlatform>
		
		<jpaPlatform
	        id="eclipselink2_1"
	        factoryClass="org.eclipse.jpt.eclipselink.core.internal.v2_1.EclipseLink2_1JpaPlatformFactory"
	        label="%ECLIPSELINK2_1_x_PLATFORM"
	        jpaFacetVersion="2.0">
	    </jpaPlatform>
		
	</extension>


	
	<!--
	******************************************
	* Library Provider Framework Integration *
	******************************************
	-->
	
	<extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries">
		
		<import-definitions 
			url="http://www.eclipse.org/webtools/dali/dev/eclipselink/eclipselink-downloadable-libs.xml">
			<enablement>
				<with variable="requestingProjectFacet">
					<test 
						property="org.eclipse.wst.common.project.facet.core.projectFacet" 
						value="jpt.jpa" 
						forcePluginActivation="true"/>
				</with>
			</enablement>
		</import-definitions>
		
	</extension>
	
	
	<extension 
		point="org.eclipse.jst.common.project.facet.core.libraryProviders">
		
		<provider id="jpa-eclipselink-user-library-provider" extends="wtp-user-library-provider">
			<param name="validator" value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
			<param name="validator.param.0" value="javax.persistence.Entity"/>
			<param name="validator.param.1" value="org.eclipse.persistence.annotations.Cache"/>
			<enablement>
				<and>
					<with variable="requestingProjectFacet">
						<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa" forcePluginActivation="true"/>
					</with>
					<with variable="jpaPlatform">
						<equals value="org.eclipse.eclipselink.platform"/>
					</with>
				</and>
			</enablement>
		</provider>
		
		<!-- eclipselink 1.1 library provider is for now a simple copy of eclipselink library provider -->
		<provider id="jpa-eclipselink1_1-user-library-provider" extends="wtp-user-library-provider">
			<param name="validator" value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
			<param name="validator.param.0" value="javax.persistence.Entity"/>
			<param name="validator.param.1" value="org.eclipse.persistence.annotations.Cache"/>
			<enablement>
				<and>
					<with variable="requestingProjectFacet">
						<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa" forcePluginActivation="true"/>
					</with>
					<with variable="jpaPlatform">
						<equals value="eclipselink1_1"/>
					</with>
				</and>
			</enablement>
		</provider>
		
		<!-- eclipselink 1.2 library provider is for now a simple copy of eclipselink library provider -->
		<provider id="jpa-eclipselink1_2-user-library-provider" extends="wtp-user-library-provider">
			<param name="validator" value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
			<param name="validator.param.0" value="javax.persistence.Entity"/>
			<param name="validator.param.1" value="org.eclipse.persistence.annotations.Cache"/>
			<enablement>
				<and>
					<with variable="requestingProjectFacet">
						<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa" forcePluginActivation="true"/>
					</with>
					<with variable="jpaPlatform">
						<equals value="eclipselink1_2"/>
					</with>
				</and>
			</enablement>
		</provider>
		
		<!-- eclipselink 2.0 library provider is for now a simple copy of eclipselink library provider -->
		<provider id="jpa-eclipselink2_0-user-library-provider" extends="wtp-user-library-provider">
			<param name="validator" value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
			<param name="validator.param.0" value="javax.persistence.Entity"/>
			<param name="validator.param.1" value="org.eclipse.persistence.annotations.Cache"/>
			<enablement>
				<and>
					<with variable="requestingProjectFacet">
						<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa" forcePluginActivation="true"/>
					</with>
					<with variable="jpaPlatform">
						<equals value="eclipselink2_0"/>
					</with>
				</and>
			</enablement>
		</provider>
		
		<!-- eclipselink 2.1 library provider is for now a simple copy of eclipselink library provider -->
		<provider id="jpa-eclipselink2_1-user-library-provider" extends="wtp-user-library-provider">
			<param name="validator" value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
			<param name="validator.param.0" value="javax.persistence.Entity"/>
			<param name="validator.param.1" value="org.eclipse.persistence.annotations.Cache"/>
			<enablement>
				<and>
					<with variable="requestingProjectFacet">
						<test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jpt.jpa" forcePluginActivation="true"/>
					</with>
					<with variable="jpaPlatform">
						<equals value="eclipselink2_1"/>
					</with>
				</and>
			</enablement>
		</provider>
		
	</extension>
	
	
	<!-- ***** WTP extensions ***** -->

	<extension
		point="org.eclipse.wst.common.modulecore.resourceFactories">
		
		<resourceFactory
			class="org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmXmlResourceFactory"
			isDefault="true">
			<contentTypeBinding
				contentTypeId="org.eclipse.jpt.eclipselink.core.content.orm">
			</contentTypeBinding>
		</resourceFactory>
	    
	</extension>
	
	
	<extension 
		point="org.eclipse.wst.xml.core.catalogContributions">
		
		<catalogContribution id="default">
			
			<public
				publicId="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
				uri="schemas/eclipselink_orm_2_1.xsd"/>
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_0.xsd"
				uri="schemas/eclipselink_orm_1_0.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_1.xsd"
				uri="schemas/eclipselink_orm_1_1.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_2.xsd"
				uri="schemas/eclipselink_orm_1_2.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_2_0.xsd"
				uri="schemas/eclipselink_orm_2_0.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_2_1.xsd"
				uri="schemas/eclipselink_orm_2_1.xsd" />
			
			<public
				publicId="http://www.eclipse.org/eclipselink/xsds/persistence/oxm"
				uri="schemas/eclipselink_oxm_2_1.xsd"/>

			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_0.xsd"
				uri="schemas/eclipselink_oxm_2_0.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_1.xsd"
				uri="schemas/eclipselink_oxm_2_1.xsd" />
				
			<public
				publicId="http://www.eclipse.org/eclipselink/xsds/persistence"
				uri="schemas/eclipselink_oxm_2_1.xsd"/>				
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_persistence_map_1.0.xsd"
				uri="schemas/eclipselink_persistence_map_1.0.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_persistence_map_1.1.xsd"
				uri="schemas/eclipselink_persistence_map_1.1.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_persistence_map_1.2.xsd"
				uri="schemas/eclipselink_persistence_map_1.2.xsd" />
			
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_persistence_map_2.0.xsd"
				uri="schemas/eclipselink_persistence_map_2.0.xsd" />
				
				
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_sessions_1.0.xsd"
				uri="schemas/eclipselink_sessions_1.0.xsd" />
				
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_sessions_1.1.xsd"
				uri="schemas/eclipselink_sessions_1.1.xsd" />	
						
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_sessions_1.2.xsd"
				uri="schemas/eclipselink_sessions_1.2.xsd" />
				
			<uri
				name="http://www.eclipse.org/eclipselink/xsds/eclipselink_sessions_2.0.xsd"
				uri="schemas/eclipselink_sessions_2.0.xsd" />	
			
		</catalogContribution>
		
    </extension>
	
</plugin>

Back to the top