Dejan Radovanovic

Greenhorn
+ Follow
since Aug 10, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dejan Radovanovic

If the customer with customer number 3 is deleted, the next free customer number should be 3.
1 week ago
Listen, friends, you're overthinking this way to much. If I have 5 Customers in my database, I need that when I go to my form page, in my input field for CustNumber , writes number 6. That is all. Jdbc template, JPA, what is the best way. I'm not using API, it is just a local mysql base, Spring and Hibernate.
1 week ago
It can be a duplicate, it is not a primary key. Now, how can I retrieve next free value in Java Spring to my form view?
1 week ago
This is a part of a larger accounting application and I got the assignment  to put one part of it on the web using Spring. Two customers can have a same CustNum, but what separates them is their ID and CompanyID (multiple companies can use our program). Listen, I didn't write that app, my senior colleagues did, I just need to put a part of it on the web in the exact form. And in original form, when you click on CustomerRegister, it opens a form for creating and in the first field, writes next free CustNumber automatically.
1 week ago
Hi. I have made a Spring MVC form for creating a new Customer. Customer has an ID but also has a int value CustNumber which is also a primary key. I need to setup that every time when I open my customer form, in input field CustNumber, app generates next free value from column CustNumber in database.
I'm using just Spring MVC with Hibernate and I'm new in all of this, i just started learning Spring a week ago. I have my Customer controller, service, DAO, Customer class, my basic CRUD operations work. I just don't know how to use queries in Spring, raw queries that I used in Java. If somebody can help me to retrieve
next free CustNumber from database and automatically write it in input field CustNumber, I would be much grateful.
2 weeks ago