About @Embeddable

release

2.6.7

Release date: 2016-03-04 Download (5.54 MB) Binary:  objectdb-2.6.7.zip Version 2.6.7 Added an option to write javaagent enhanced c ...

 
api-jpa

javax.persistence.AccessType

Is used with the Access annotation to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or to a specific attribute of such a class.(Enum of JPA)

 
api-jpa

JoinColumn.name

(Optional) The name of the foreign key column.(Annotation Element of javax.persistence.JoinColumn)

 
api-jpa

javax.persistence.JoinTable

Used in the mapping of associations.(Annotation of JPA)

 
forum_thread

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id).     #1 2012-06-01 07:35 Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't ...

 
forum_thread

Is named-query supported in orm.xml

I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in the entity classes, for example: <named-query name= "DataValue.deleteByCapabilityAndCreationtime"> <query>delete from DataValue d where d.capabilityId = :capabilityId and d.creationtime &lt;= :creationtime </query> </named-query> This works fine with e.g. eclipseLink and postgres, but objectDB complains with an error like: #1 2011-10-12 14:50 I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in the entity classes, ...

 
forum_thread

Documentation problem - license does not match implementation

The license page says: "ObjectDB can be downloaded and used at no cost (including commercially) with the restriction of maximum 10 entity classes and one million entity objects per database file." I was well into a rather large project when I discovered, much to my horror, that the free license does not allow 10 entity classes.  It allows a total of 10 persistable classes - entity and embeddable combined.  I will now probably have to drop ObjectDB in favor of some other JPA provider. #1 2012-08-25 07:06 The license page says: "ObjectDB can be downloaded and used at no cost (including commercially) with the restrict ...

 
release

2.6.8

Release date: 2016-05-23 Download (5.57 MB) Binary:  objectdb-2.6.8.zip Version 2.6.8 Added JPA XML validation schema files to Mave ...

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... of a field of type 'A' where A is an @Entity or @Embeddable. I could do this using a Java expression that returns the correct ... the result of a JPQL query to set a value of an @Entity or @Embeddable field. ie. I want to set the value of a field of type 'A' ...