I\'m a newbie in JPA, and this question is about recommended ways to work with JPA relationships. I have entities Data and Subject, I can either create a ManyToOne relationship between them, or not.
I have a bi-directional @OneToMany self-join on a JPA 2.0 entity and I find that I have to persist both sides of the relationship for the changes to be reflected in the persistence context.In this sit
class X { Y y; // manyToOne } class Y { Long id; } @NamedQuery(name = \"someName\", query = \"from X where y.id in :ids\")
The entity has the following annotations on the id column: @Id @SequenceGenerator(name = \"JOB_MISFIRE_ID_GENERATOR\", sequenceName=\"job_misfire_sequence\", allocationSize=10)
I am trying to connect to an existing Sybase database using Play Framework JPA. @Entity @Table(name=\"trade\")
I use JPA + Hibernate. I have 2 entities (Parent, Child) with OneToMany connec开发者_开发百科tion between them. I add a list of children to the parent like this:
IN hibernate JPA how can Iupdate of a object? I have one Project entity having two attributes. projectid and projectname.
Let\'s say I have a Meeting entity.Each meeting has a single attendee and a meeting date.Within my meeting table I may have multiple meetings for each attendee, with different dates for each.I need a
I\'m trying to run a simple dataImport class which is using JPA and Hibernate. If I run my class, i always have the following error:
I have SQL Server 2008 and a JPA (EclipseLink) app.I need to be able to read the rows from the stored procedure.The stored procedure does some updating/开发者_StackOverflow中文版etc but at the end ret