I am having problems mapping a legacy database schema using JPA annotations. The schema uses a table to generate unique IDs for most of the tables in the db - it has a structure of:
I am new to Java EE, and I set up a learning case for myself where I can register users and persist the data to the database, I use Glassfish, EclipseLink JPA 2.0 and JSF framework. The databasecontai
Why isn\'t my CascadeType.REFRESH actually refreshing my entities? When adding an object it doesn\'t update the collection (still empty).
Currently i try to connect (via JPA/Datanucleus) with an application, hosted by Google App Engine, to the database service of database.com (Salesforce)
How do you get/print the JPQL query string behind a (typed) query, that is after parameters have been set? (e.g. for debugging purposes)
@Entity public class Report extends Model { public Date date; public double availability; @ElementCollection
I am working with onetomany relationship in hibernate JPA annotations, here is my table and entity class details...
We are developing a Java EE application using Hibernate as a JPA provider. We now wish to use Hibernate Criterias but for that I need to get access to the HibernateEntityManagerImpl.
I know JPQL is a subset of HQL. Are there any practical usecases (please give examples) that really need HQL specific features to be used (that means it is impossible or considerably difficult with
So if a child is created or deleted, I want to remove/add to collection on parent without manually callin开发者_如何学JAVAg accessing the collection or retreving a new parent object from the session.