hibernate tag

6 questions


1 answers
125 views
0
About Hibernate

Downloaded Hibernate 5.2.17.Final.But I don't know which JAR file to choose.Many Japanese websites on the Internet have older versions, and I am troubled because they are not in the zip file I dropped...

2 years ago

1 answers
146 views
0
Left external coupling does not work.

I'm trying to get data from a combination, but the following exceptions occur:I would like to know how to avoid this exception.T_estimate has dataNo data in T_estimate_details 両方 If you have both data...

2 years ago

1 answers
110 views
0
When deleting data, can I find it with the delete method (key value to match, class name)?

public static void delete (int id) { // Create an EntityManager EntityManager manager = ENTITY_MANAGER_FACTORY.createEntityManager(); EntityTransaction transaction = null; try { // // Get a transacti...


1 answers
144 views
0
Problems with JAVA 8 Local Date Time data type being stored as a bytea data type in PostgreSQL when using Hibernate 5.0.9

Hibernate 5.0.9 version Dialect is using postgresql. To use the new java.time package in Java8, add jackson-datatatatype-jsr310 dependency and use it.When the field is declared and DDL is automaticall...


1 answers
126 views
0
When storing values using JPA, how to assign a key value to a class field mapped to @AnyToOne (see Foreign Key)

EntityTo establish a relationship inside, we mapped it using the @AnyToOne annotation. For example:@Entitypublic class Book { @Id @GeneratedValue private long id; @Column private String name; @ManyToO...


1 answers
167 views
0
How do I count the number of rows in Hibernate?

For example, if you have a tablet book, how do you count the total number of books in Hibernate?

2 years ago

© 2024 OneMinuteCode. All rights reserved.