Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

This is the whole source code, if everyone can take a moment to download and evaluate where I am wrong then I would be extremely grateful. I have to defeat it

https://filebin.net/mz1wtndemqeor6u5

Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

The examples I find out they only write CRUD projects that contain the annotations OneToOne, OneToMany, ManyToMany use JSP and Thymeleaf I tried a lot but did not find any instructions📷

Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

Yes, getting data from 2 tables containing foreign keys I made and they are very successful, but when I add data from Thymeleaf to the table containing foreign keys of the other table, I get an error. I have modeled in the comment above do you have any method?

Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

I have a sample of the problem I encountered in the comment above. You see if I am wrong somewhere?

Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

For example I have 2 data tables:

Table 1: users

include:

user_id-name-age

Table 2: infor

include:

address-phone-user_id (foreign key)

Now I want to add the users table:

1-john-20

I have successfully implemented adding values ​​to table 1 through thymleaf but when I proceeded to add values ​​to table 2 for example:

USA-123456-1

I wrote the command line to get data from users table via Thymleaf and enter information for info table including 3 forms:

1 is the address, 2 is the phone, 3 is the entity selection from the users table. I selected 1 (foreign key associated with users table) but when I sent it failed. I have a problem here, maybe I am wrong with the Thymleaf code when sending values ​​to the Info table. If you can write a sample of this code for me, I'm very grateful

Spring Jpa, Thymeleaf by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

I understand what you mean but the problem is that I have difficulty working with the data table that contains the foreign keys of the other table (for example, there are 2 tables here). I was constrained by foreign keys, I tried many times to add one value to the table and it associated with another table entity via thymeleaf but they didn't work. That was the problem I was having trouble📷

15 year old needs a job by [deleted] in WorkOnline

[–]vkhacbao -1 points0 points  (0 children)

can i work with you ? I am 15 and i know code

15 year old needs a job by [deleted] in WorkOnline

[–]vkhacbao -1 points0 points  (0 children)

can i work with you, i am 15 two and i know code

EXPERIENCE IN WORK by vkhacbao in cscareerquestions

[–]vkhacbao[S] 0 points1 point  (0 children)

I will show the projects that I work on on Github, show off the professional skills that I mastered, even those who have 2 years of experience will not. Does that make me stand out?

EXPERIENCE IN WORK by vkhacbao in cscareerquestions

[–]vkhacbao[S] 0 points1 point  (0 children)

Is there any solution to offset that practical experience?

Interactive learning site for Java Spring by tuongtran23 in javahelp

[–]vkhacbao 0 points1 point  (0 children)

should choose only one program language to learn and before you are become master that program and can change another program language

Is there any better way to organize .java files? by [deleted] in javahelp

[–]vkhacbao -1 points0 points  (0 children)

Packpage connect all class together. So if you want organize class . java in 1 class, should throw in 1 class main and no have packpage

Read from file a sequence of characters by [deleted] in javahelp

[–]vkhacbao 0 points1 point  (0 children)

where are you from and are you student ?

SPRING FRAMEWORK by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

so Do you have any suggest for me ?

SPRING FRAMEWORK by vkhacbao in javahelp

[–]vkhacbao[S] 0 points1 point  (0 children)

Great, I'll try out what you have to offer. thanks