| |

VerySource

 Forgot password?
 Register
Search
View: 640|Reply: 2

Little question from SHH!

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-24 15:20:01
| Show all posts |Read mode
try {
this.getHibernateTemplate (). save (jobs);
}
catch (Exception e)
{
ret = false;
}
I get an error when I perform this save operation
 null id in entry (don't flush the Session after an exception occurs)
Don't understand what's wrong with this error! The ID in the JOBS table is self-incrementing!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-8 10:30:01
| Show all posts
Try configuring the id policy in * .hbm.xml to native.
Reply

Use magic Report

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Brazil

 Author| Post time: 2020-5-1 22:00:01
| Show all posts
Changed! Still not work!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list