Home » Search

About embeddable

71-80 of 141Refresh
Forum
3

TemporalType injection with Calendar using JPA

here that I am failing to see?   @Embeddable @Access(AccessType.PROPERTY) public class TimePeriod ... too much time on it) The following documentation is misleading Embeddable Classes (and Simple Java Data Types), as it clearly states that java.util.Calendar is a persistable type for a field in a Embeddable
Forum
2

Dirty checking

    surprisingly, it looks like embeddable classes can't register change listeners? ie: @Embeddable @EntityListeners (Listener.class) So, having to go and make all @Embeddables into @Entities. and, having ... contained by other Entities (i.e: that were previously Embeddables).   Changes to embedded objects
Forum
2

Explorer in 2.3

'A' where A is an @Entity or @Embeddable. I could do this using a Java expression that returns the correct ... @Embeddable field. ie. I want to set the value of a field of type 'A' where A is an @Entity or @Embeddable. So I enter a JPQL  query which returns a single object. Or I have a field which is an explicit
Forum
2

How do I achieve a Deep Fetch using JOIN FETCH?

I have an Entity type which is contains a collection of Embeddable objects, which in turn themselves contain a collection of Embeddable objects: @Embeddable class A { String val; }; @Embeddable class B { List aList; }; @Entity class C { @Id long id; List bList
Forum
2

Issue with Casting / Joins

Hi I can't seem to find my way out of this. Basically what I have is something like: @Embeddable public class EmbeddedBase { ... } @Embeddable public class EmbeddedA extends EmbeddedBase ...   = new HashMap();     }     @Embeddable     public static class EmbeddedBase
Forum
2

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public ... of the following data types: ......... Instances of user defined classes (entity classes and embeddable classes ... have the same type and the same primary key value. For embeddable objects, e1 = e2 if e1 and e2
Forum
2

Query to find object from element of a contained collection

= null;     ... }       Although serializable objects that are not entity or embeddable classes ... due to their limitations. Try to define OrderItemData as en embeddable class. In addition, replace the ordinary array ... you for the fast support, indeed the few classes that were not entity nor embeddable have been set as
Forum
2

Weird behaviour with enhanced classes and embedded entities

.CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax ... > getEmbeddedEntities(){       return embeddedEntities;     }   }     @Embeddable   static class ... ){       this.embeddedEntities.add(entity);     }   }     @Embeddable   static class
Issue
2

Weird issue with variable naming

javax.persistence.CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity ... )   {    for (MyMapEntity me : mapEntities)    {     map.put(me.name123, me);    }   } } @Embeddable ... : package com.test; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax
Forum
2

can't get HashMap out of the database

and it is still not working. It involves nested embeddable objects. I've modified the test code ... ) at guest.GuestTest.test(GuestTest.java:25) The Guest object is: @Embeddable public class Guest ... . Please advise if nested embeddable objects are supported. Kind regards, Natalia. Nested embedded