jpa tag

13 questions


1 answers
95 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
102 views
0
user permission table design

What I'm going to do now is to store multiple roles for each user, and there are several permissions attached to the role.user1.Role = [writer, reader]user2.Role = [editor, reader]writer.permission = ...


1 answers
75 views
0
SQL error not present in SQL statement

I wrote the code as below.There is no problem when running orderUser When executing orderDelete, the table is being modified normally, but a query statement error occurs.public interface BasketReposit...

1 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.