9. Working with Common Enterprise Libraries

9.1 Working with Hibernate

9.1.1 Importing Hibernate

Hibernate uses CGLIB to dynamically create subclasses of your entity types at runtime. To guarantee that Hibernate and CGLIB can correctly see the types, you must add an Import-Library for the Hibernate library into any bundle that uses Hibernate directly and any bundle that contains types to be persisted by Hibernate.