jpa
JPA (hibernate) relation OneToMany with date
I need to create hibernate relation one to many between Department and Person (one Department has many persons).[详细]
2023-04-09 09:21 分类:问答JPA/Hibernate with InheritanceType.JOINED doing select on subclass
I have a basic inheritance hierarchy setup using JPA and Hibernate that looks something like the following:[详细]
2023-04-09 08:36 分类:问答How do I get id of merged JPA entity
I have a little application where I store entity to DB. I do this in next way: class Entity { privete id;[详细]
2023-04-09 07:31 分类:问答Is using JPA/ORM to generate a db schema a bad idea?
Salve! Part of another question/answer on SO (as well as other statements claiming the same): if you are updating your database schema by JPA (generally not a good practice though)[详细]
2023-04-09 06:27 分类:问答JPA Hibernate manyToMany with non-unique key
I have two entities (tables): Department and Person. Both tables have a field CODE which is not unique.[详细]
2023-04-09 06:14 分类:问答Hibernate: Parent-Child Relationship to Itself
I have two tables: TABLE NAME: TABLE_A A_ID A_CODE A_DESC TABLE NAME: TABLE_B B_ID B_TABLE_A_PARENT_ID B_TABLE_A_CHILD_ID[详细]
2023-04-09 06:09 分类:问答JPA root get in Hibernate not working with IdClass attribute
I\'m trying to do a multiselect on an entity with an IdClass. I can\'t get a column that is mapped as part of the ID. It\'s clear why I can\'t, as none of the columns that are marked as @Ids are a par[详细]
2023-04-09 04:44 分类:问答How to map PostgreSQL enum with JPA and Hibernate
I am trying to map a PostgreSQL custom type,named transmission_result, to a Hibernate/JPA POJO. The PostgreSQL custom type is more or less an enum type of string values.[详细]
2023-04-09 04:42 分类:问答How do I control column size for enums?
This is with EclipseLink via JPA, where I let it create the tables for me.The back end data base is Derby for development mode, and I expect to use MySQL or something else for deployment.[详细]
2023-04-09 03:20 分类:问答How can I debug this Hibernate/JPA slow query issue?
I have a Hibernate/JPA query which performs a simple query based on an indexed field in the database. The table is fairly large with around 28 million records but when using the database directly the[详细]
2023-04-09 02:56 分类:问答