Annotation « Component « JPA Q&A





1. Annotation equivalent to Component in Hibernate    stackoverflow.com

I am aware that using the component tag I can use a part of the class and make it available in an entity in hibernate. How do i achieve this through ...

2. Hibernate: javax.naming.NoInitialContextException (Component Mapping via Annotations)    stackoverflow.com

Could someone tell me why am I getting the following error?

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource ...

3. Hibernate annotations when using collection of components    forum.hibernate.org

Hi all, I'm using hibernate 3.2.0.CR1 and annotations 3.1 beta 9. My problem is following: I have a unidirectional many-to-many association between customers and roles (Customer class should have a method called getRoles()). The mapping table however also has an extra attribute expiryDate, that will tell when the specific role for the customer will expire (see the table definitions below). How ...

4. Hibernate Annotations: Problem with Component Mapping    forum.hibernate.org

Hello I search since 4 days for the following problems and I am really desperate :-( Problem1: I would like to embed the attributes "datum" and "datumszusatz" in the class "HFPersonImpl" from the class "ErweitertesDatumImpl". Hibernate override the Attribut "datum" but not "datumszusatz" (look at Example1). If I don't use the Relationship, Hibernate generates the attribute "datumszusatz" (Example2). Why? Where is ...

5. Annotation for dynamic components?    forum.hibernate.org

I am working on augmenting our object model framework to support the addition of custom properties by an end user. The approach I am using is to have these additional properties accessible via a map on the object and mapped via a dynamic component similar to the approach shown here: http://www.infoq.com/articles/hibernate-custom-fields The difference between what is shown there and what we ...

6. Annotations for an ordered Map of components    forum.hibernate.org

Author Message mipper69 Post subject: Annotations for an ordered Map of components Posted: Mon Jun 08, 2009 10:38 am Newbie Joined: Mon Jun 08, 2009 10:34 am Posts: 1 I'm hoping someone can point out where I'm going wrong with my mapping for the situatio described below. It's driving me nuts! I'm trying to map a collection of elements ...