jpa
Using Stripersist with a test database
I am trying to write comprehensive unit and i开发者_开发问答ntegration tests for my project, but the integration database has a different connection string that the main database.I have loaded the per[详细]
2023-04-10 03:14 分类:问答Mapping value in junction table to Entity
I have a USER table and a COURSE table.A USER can have many COURSES, and a COURSE many USERS.The junction table contains a ROLE value that determines what role the user has in a COURSE (i.e. Instructo[详细]
2023-04-10 02:29 分类:问答Does JPA only refer to RDBMS
JPA is all about data persistence; is data persistence only limited to RDBMS ? if not what are all the different persistence mechanisms (like Excel,File System,XML, NON RDMS etc ..) we can achieve wit[详细]
2023-04-09 18:28 分类:问答Bidirectional one-to-one mapped to multiple fields
I have a domain class called Flight that represents a flight that has been flown. I have another class called Movement which can represents either a departure or an arrival and contains a date and tim[详细]
2023-04-09 17:12 分类:问答How to express a Serializable Blob type in a hibernate mapping file
I have a legacy application that uses hibernate for mapping objects into a database. It uses the Hibernate Mapping XML file to do so. The java class contains two properties abc and def that implement[详细]
2023-04-09 16:00 分类:问答Hibernate search and JPA with JTA transaction
I want to use the Hibernate Search full text search capabilities. I have a simple Java EE application. I annotated the entity classes and here is my persistence.xml:[详细]
2023-04-09 14:27 分类:问答Creating new entity classes from database in Netbeans and Glassfish
I am trying to create entity classes from database for my JPA/Hibernate project in Netbeans (7.0) IDE with Glassfish server (3.1)[详细]
2023-04-09 13:38 分类:问答JPA 2.0 native query results as map
I run a JPA 2.0 native query like this: Query query = em.createNativeQuery(\"SELECT NAME, SURNAME, AGE FROM PERSON\");[详细]
2023-04-09 11:38 分类:问答JPA: @JoinTable - Both columns are Primary Keys.. How do I stop that?
This is my annotation I use to generate my Join Table. @OneToMany(cascade = CascadeType.ALL) @JoinTable(name = \"service_operations\",[详细]
2023-04-09 11:30 分类:问答Entity CRUD w/ OneToMany and orphanRemoval
I am building some CRUD forms for a web application. I have one entity, lets say Part, that has its own fields (sku, price, etc) as well as a link to other entities via @OneToMany. The way I have laid[详细]
2023-04-09 09:28 分类:问答