70
70
71
71
<para >
72
72
Quickstart tutorial project, demonstrating a container-managed JPA client bundle:
73
- <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/master /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa" >managed-jpa</link >
73
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa" >managed-jpa</link >
74
74
</para >
75
75
76
76
<section >
91
91
</para >
92
92
</section >
93
93
94
- <section >
95
- <title >JPA 2.1</title >
96
-
97
- <para >
98
- No Enterprise OSGi JPA container currently supports JPA 2.1 (the spec is not yet released). For
99
- testing, the managed-jpa example makes use of
100
- <link xl : href =" https://github.com/brmeyer/aries/tree/jpa21" >Brett's fork of Aries</link >. To work
101
- with Hibernate 4.3, clone the fork and build Aries JPA.
102
- </para >
103
- </section >
104
-
105
94
<section >
106
95
<title >DataSource</title >
107
96
<para >
108
97
Typical Enterprise OSGi JPA usage includes a DataSource installed in the container. The client
109
98
bundle's <literal >persistence.xml</literal > uses the DataSource through JNDI. For an example,
110
99
see the QuickStart's DataSource:
111
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/datasource-h2.xml" >datasource-h2.xml</link >
100
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/datasource-h2.xml" >datasource-h2.xml</link >
112
101
The DataSource is then called out in
113
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/src/main/resources/META-INF/persistence.xml" >
102
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/src/main/resources/META-INF/persistence.xml" >
114
103
persistence.xml's</link > <literal >jta-data-source</literal >.
115
104
</para >
116
105
</section >
120
109
<para >
121
110
Hibernate currently requires fairly specific bundle activation ordering. See the managed-jpa
122
111
QuickStart's
123
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml" >features.xml</link >
112
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml" >features.xml</link >
124
113
for the best supported sequence.
125
114
</para >
126
115
</section >
132
121
<literal >blueprint.xml</literal >. The container takes the name of your persistence unit, then injects
133
122
an <literal >EntityManager</literal > instance into your given bean attribute. See the
134
123
<literal >dpService</literal > bean in the managed-jpa QuickStart's
135
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/src/main/resources/OSGI-INF/blueprint/blueprint.xml" >blueprint.xml</link >
124
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/src/main/resources/OSGI-INF/blueprint/blueprint.xml" >blueprint.xml</link >
136
125
for an example.
137
126
</para >
138
127
</section >
148
137
149
138
<para >
150
139
Quickstart tutorial project, demonstrating an unmanaged JPA client bundle:
151
- <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa" >unmanaged-jpa</link >
140
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa" >unmanaged-jpa</link >
152
141
</para >
153
142
154
143
<section >
184
173
<para >
185
174
Hibernate currently requires fairly specific bundle activation ordering. See the unmanaged-jpa
186
175
QuickStart's
187
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml" >features.xml</link >
176
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml" >features.xml</link >
188
177
for the best supported sequence.
189
178
</para >
190
179
</section >
201
190
<para >
202
191
For an example on how to discover and use the service, see the unmanaged-jpa
203
192
QuickStart's
204
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/src/main/java/org/hibernate/osgitest/HibernateUtil.java" >HibernateUtil.java</link >.
193
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/src/main/java/org/hibernate/osgitest/HibernateUtil.java" >HibernateUtil.java</link >.
205
194
</para >
206
195
</section >
207
196
</section >
216
205
217
206
<para >
218
207
Quickstart tutorial project, demonstrating an unmanaged native client bundle:
219
- <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native" >unmanaged-native</link >
208
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/tree/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native" >unmanaged-native</link >
220
209
</para >
221
210
222
211
<section >
257
246
<para >
258
247
Hibernate currently requires fairly specific bundle activation ordering. See the unmanaged-native
259
248
QuickStart's
260
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml" >features.xml</link >
249
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml" >features.xml</link >
261
250
for the best supported sequence.
262
251
</para >
263
252
</section >
274
263
<para >
275
264
For an example on how to discover and use the service, see the unmanaged-native
276
265
QuickStart's
277
- <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/src/main/java/org/hibernate/osgitest/HibernateUtil.java" >HibernateUtil.java</link >.
266
+ <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/src/main/java/org/hibernate/osgitest/HibernateUtil.java" >HibernateUtil.java</link >.
278
267
</para >
279
268
</section >
280
269
</section >
283
272
<title >Optional Modules</title >
284
273
285
274
<para >
286
- The <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native" >unmanaged-native</link >
275
+ The <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native" >unmanaged-native</link >
287
276
QuickStart project demonstrates the use of optional Hibernate modules. Each module adds additional
288
277
dependency bundles that must first be activated
289
- (see <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/master /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml" >features.xml</link >).
290
- As of ORM 4.2, Envers is fully supported. Support for C3P0, Proxool, EhCache, and Infinispan were added in
278
+ (see <link xl : href =" https://github.com/hibernate/hibernate-orm/blob/4.2 /documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml" >features.xml</link >).
279
+ As of ORM 4.2, only Envers is fully supported. Support for C3P0, Proxool, EhCache, and Infinispan will be added in
291
280
4.3, however none of their 3rd party libraries currently work in OSGi (lots of ClassLoader problems, etc.).
292
281
We're tracking the issues in JIRA.
293
282
</para >
305
294
306
295
<itemizedlist >
307
296
<listitem >
308
- <literal >org.hibernate.integrator.spi.Integrator</literal > (as of 4.2)
309
- </listitem >
310
- <listitem >
311
- <literal >org.hibernate.boot.registry.selector.StrategyRegistrationProvider</literal > (as of 4.3)
312
- </listitem >
313
- <listitem >
314
- <literal >org.hibernate.metamodel.spi.TypeContributor</literal > (as of 4.3)
297
+ <literal >org.hibernate.integrator.spi.Integrator</literal >
315
298
</listitem >
316
299
<listitem >
317
300
JTA's <literal >javax.transaction.TransactionManager</literal > and
318
- <literal >javax.transaction.UserTransaction</literal > (as of 4.2) , however these are typically
301
+ <literal >javax.transaction.UserTransaction</literal >, however these are typically
319
302
provided by the OSGi container.
320
303
</listitem >
321
304
</itemizedlist >
388
371
Hibernate 5.
389
372
</para >
390
373
</listitem >
391
- <listitem >
392
- <para >
393
- No Enterprise OSGi JPA container currently supports JPA 2.1 (the spec is not yet released). For
394
- testing, the managed-jpa example makes use of
395
- <link xl : href =" https://github.com/brmeyer/aries/tree/jpa21" >Brett's fork of Aries</link >. To work
396
- with Hibernate 4.3, clone the fork and build Aries JPA.
397
- </para >
398
- </listitem >
399
374
</itemizedlist >
400
375
</section >
401
376
402
- </chapter >
377
+ </chapter >
0 commit comments