table « EJB « JPA Q&A





1. EJB3 - handling non-standard link tables    stackoverflow.com

I have a situation where I am working with EJB3 and a legacy database. I have a situation where there is a many-to-many relationship between two tables A and B, defined ...

2. Many-to-Many link tables in grails (GORM) / hibernate    stackoverflow.com

I'm playing aroud with Grails and am finding the ORM stuff tedious because I don't fully understand what I'm doing when it comes to domain classes. I'm hoping someone can put ...

3. In @Table(name = "tableName") - make "tableName" a variable in JPA    stackoverflow.com

I am using JPA and I need to make the "tableName" a variable. In a database, I have many tables, and my code needs to access the table where I specify ...

4. Tables not getting auto-created in Apache Derby when using EJB3/Hibernate    stackoverflow.com

I have an EJB3 entity bean Player which is annotated as given below.

@Entity
@Table(name="PLAYER")

public class Player {
public Player() {
    super();
}
@Id @GeneratedValue
private String id;
@Column(nullable=false)
private String firstName;
private String lastName;

public String ...

5. Hibernate 3 with JPA/EJB3, tables across 2 persistence units    forum.hibernate.org

I have a persistence.xml including two XA-Open enabled data sources for two different databasese. persistence-unit A has a table let's say tableA, whist persistence-unit B has a table tableB. I set the hibernate.hbm2ddl.auto=validate for both persistence unit. The problem is that when starting my application the Hibernate complains that the tableB is missing in persistence-unit A, the tableA is missing in ...