This is the relation And postman Object Data I can not insert null value .If I give the AllOrgMstOrganizationId then no problem.But when I give it Null Then Error::org.springframework.dao.InvalidDataAccessApiUsageException: detached entity passed to persist: com.hrms.entity.com.AllOrgMst; nested exception is …
Tag: java
how to prompt user to input array values and create a data type in java
I am working on a java code where it should prompt the user to input the grades of N amount of students and it should output the highest grade, My code is working well but I want to give the user ability to enter the content of the array and I want to create a data type called Student for
register an account and login in java
hi im newbie in java and i try to create a login/registration by using array. but when i try to login the account that i created it always shows out the wrong login details message, am i missing something? or should i use other method to do the validation check other than using array? tq here’s my code …
Creating user input for randomized 2D java array issue – OutOfBoundsException
Trying to create a 2D array that takes the users input for rows and columns. The numbers inside the array are then randomized from 0 to 100. I am getting the following error: Enter rows for the array: 3 Enter columns for the array: 2 Exception in thread “main” java.lang.ArrayIndexOutOfBoundsExcept…
Using Java check to determine if there is data in mySQL table before updating table
I am new to Java and am trying to see if the date (actually day of week) column in MySQL contains the date before updating the table. If the date already exist the table should not be updated and if the date doesn’t exist the table should be updated. I’ve tried different code. My prior code either…
How to make a custom message from an already defined response on Spring
My API is returning me this: The problem is, I would like to, on the array that is represented by the second ID, return a error message, as there is no data in it. Something like this: My code is as follows: With this, I can’t seem to override the specific response, as it is an List of the Entity(Health…
NATS Stream creation fail
When I try to create a stream on the local NATS server get the error. The connection established successfully but on jsm.addStream(conf) request broke. I’m using maven artifact: Method connection: Call: NATS running inside docker conainer on localhost: But when I call endpoint get the error: What is the…
How to create a rectangle for azimuth direction for n kilimeter
Suppose I have three four columns like item,item_latitude,item_longitude and azimuth. I am trying to create a rectangle for each lat and long in the azimuth direction for +/-35 degree and 2 Kilometer. Example . There is a azimuth of site x is 45 degree so +35 and -35 degree to 45 degree would be 15 degree and…
How can I execute functional tests as part of CICD pipeline
In my organisation I have created a test automation using qaf (qmetry automation framework). My target is to run this functional test cases automatically in CICD pipeline. We have a system where when code check-in was complete then the Jenkins tool will trigger the functional test cases automatically and it r…
Personal computer failed to access maven central
I have a PC that installed with gaming app like Steam or GOG but in Windows config there is no proxy and no firewall other than default ones from the OS. I have NordVPN but currently disconnected. However after installed maven 3.8.2, all mvn goal failed that can’t access maven central threw following er…