Questions tagged [embeddable]

@Embeddable is an annotation used in Java to suggest that a class is stored as an intrinsic part of an owning entity and share the identity of the entity. It is a part of JPA implementations.

@Embeddable is an annotation used in to suggest that a class is stored as an intrinsic part of an owning entity and share the identity of the entity. It is a part of implementations/frameworks such as . This annotation will suggest to the framework that the class is a part of another entity and will treat any mapped attribute within the class as a mapped attribute of the containing entity.

It corresponds to other annotations which may be used by the owning Entity such as @Embedded and @Entity.

Java EE Documentation

SO question covering the basics of Embeddable

141 questions
1
vote
0 answers

Hibernate - Mixing MappedSuperClass and Embedded ORM Strategies

I have an existing Hibernate Entity hierarchy I am working with. The Entities already use MappedSuperClass to inherit some common fields from base classes. In my scenario I need to inherit these fields as well and in addition need to leverage some…
1
vote
1 answer

Hibernate Criteria select using embedded object (tuple)

In my case I have a SQL query which looks like: select * from event_instance where (object_id, object_type) in (); I want to map this on Hibernate Entities and I have a problem with this query. My…
slaveq
  • 393
  • 2
  • 10
1
vote
0 answers

Embeddable EJB (JBoss) init options

I've created a Junit Suite Tests with Embeddable EJB using the following dependency: org.jboss.ejb3.embedded jboss-ejb3-embedded-standalone
Rafael Orágio
  • 1,718
  • 5
  • 19
  • 26
1
vote
1 answer

JPA EclipseLink Weaver generates call to porperty getter inside its setter -> NullPointerException

I have an @Embeddable class that uses property access to wrap another object that's not directly mappable by JPA via field access. It looks like this: @Embeddable @Access(AccessType.PROPERTY) public class MyWrapper { @NotNull @Transient …
Tobias Meyer
  • 361
  • 3
  • 9
1
vote
0 answers

set with embeddable, nullable properties

I have Set with embeddable class in it mapped like this. @ElementCollection @ForeignKey(name = "fk_object_org_ref") @CollectionTable(name = "m_object_org_ref", joinColumns = { @JoinColumn(name = "object_oid", referencedColumnName =…
viliam
  • 503
  • 6
  • 23
1
vote
1 answer

Which noSQL DB is appropriate

I have an application which is receiving data for thousands (say 50,000) subjects. Each data tuple comprises a subjectId and text data. I am looking for an embeddable Java database which will provide me the following functionality: Store the data…
Hylton Peimer
  • 548
  • 5
  • 16
1
vote
3 answers

Embeddable EJBContainer and JBoss 7.1.1.Final

Has anyone been able to get EJBContainer.createEJBContainer() to work with JBoss 7.1.1.Final? Running the following code as a JUnit test results in NullPointerException! public class EJBContainerTest { private static EJBContainer…
mhdwrk
  • 1,745
  • 2
  • 13
  • 19
0
votes
1 answer

Is it possible to develop a hybrid (native + html5) app for Blackberry?

On Android, since the browser is embeddable inside a native screen, we can build hybrid apps with some screens as native and some with an embedded Webview. Is it possible to embed the browser inside a native Blackberry screen and have cross-talk…
Shirish Kamath
  • 356
  • 4
  • 5
0
votes
2 answers

Spring Boot Embeddable Composite Key with H2 returns JdbcSQLSyntaxErrorException - Field not found even though the field exists

I am building a SpringBoot API and have entity CarEntity with a composite key @Entity @Table(name = "CAR") @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Builder @ToString public class CarEntity implements Serializable { private static…
pixel
  • 9,653
  • 16
  • 82
  • 149
0
votes
0 answers

Syfmony Embedded classes for entity - fieldMappings inheritance

I've got the following issue and i can't found on the entire internet what should be the solution.. I've created a class named IdColumn and i want this class to be used in every entity of my project due to standardise…
Dok
  • 19
  • 4
0
votes
0 answers

Spring boot: composite key fails when trying the add method

I have a spring boot app which is basically the backend of a simple e-commerce site. There are four entities: product, order, customer and orderproduct. The last one has a composite key, made from the respective order and product entities. They have…
0
votes
0 answers

JPA Embeddable bidirectional

What's the correct way to create bidirectional 1to1 mapping using Embeddable annotation? This one throws error "EmpId has no persistent id property: Emp.id" @Entity public class Per implements Serializable { @Id @GeneratedValue(strategy =…
0
votes
1 answer

Can Python Embeddable Package Install IDLE Separately?

A Python embeddable package can install pip separately (pip with embedded python), but can it also install IDLE separately? As the embeddable package has pythonw.exe already, I tried to externally load idle.pyw with it, but more seem to be needed.
Junyong Kim
  • 279
  • 1
  • 2
  • 10
0
votes
0 answers

@Embeddable equivalent in cassandra 3.x or 4.x

Currently, i am doing DB Migration from SQL to NOSQL Db in spring boot application I am looking for equivalent way of "@Embeddable" in cassandra 3.x or 4.x Is it valid in NOSQL database, if not, please share the alternate way
0
votes
0 answers

Are there best practices for styling a URL to become an iFrame?

When embedding a YouTube video on a blog they give you an iFrame with a specific URL. Take this cat video example: