python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Hibernate sends NULL for autogenerated field
I have entity described as
@Entity(name = "my_entity")
public class MyEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
it's table is created ...
Dims
Votes: 0
Answers: 1
How to make H2 db display a number instead of date/interval
Is it possible to make H2 db display a number instead of date/interval to get the same short answer as oracle/mysql?
Running this sql in oracle /H2 console:
select trunc(sysdate+5) - trunc(sysdate) n...
Peter Pan
Votes: 0
Answers: 1
Error: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
I'm using spring boot (2.0.5 RELEASE), H2 DB, Lombok and Java 1.8. I've configured a basic entity using spring data jpa. I'm getting the below exception while trying to run the app. My local machine i...
user1636077
Votes: 0
Answers: 0
Using xml-functions in h2 database for university project
For my university-project I installed an h2database locally on my computer. I have a little data in it and now I am trying to export parts of this data via the included xml-functions that h2 offers.
H...
Yannick251
Votes: 0
Answers: 1