Saeed Muhaisen
Explore posts from serversJCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 5/2/2025 in #java-help
Springboot Migration Automation
Is there a way to generate an SQL file for all changes that happens to my entities each time i start my app such that i can copy/paste this sql file into my production and manually alter my tables after i finish working on a feature in springboot that would change some entities?
96 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 7/22/2024 in #java-help
Springboot GenerationType.UUID not working
On create drop the sql field becomes:
upon inserting a row without specifying my Id field i get the error:
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 7/19/2024 in #java-help
Database import issue

4 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 7/14/2024 in #java-help
Spring boot - Detached entity passed to persist
In my UserRequest entity i have the following:
and in User i have the following:
when i try to save or update User through saving UserReqeust entity i get error:
detached entity passed to persist, how can i fix it through connecting the classes correctly?
36 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 7/8/2024 in #java-help
Docker issue with Spring boot 3.2.2 and PostgreSQL on AWS
I have been running into issues figuring out how to dockerize my image and upload it to aws.
Here is my dockerfile:
This is my docker-compose:
when composing or building i get errors in postgres connection attempt failed.
<properties>
<java.version>17</java.version>
</properties>
xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
```
I ran to so much issues because i was on java 21 and mvn had errors, but at this point i cannot figure it out at all
Any help would be truly appreciated.
Errors i get when running the container are usually postgres connection issue and tomcat server not starting issues, i am sure i am making a mistake in connecting the app to postgres but idk what i am missing
9 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 4/3/2024 in #java-help
Opinion on Database Schema

101 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 1/26/2024 in #java-help
Security Question for Spring boot

34 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 1/21/2024 in #java-help
[GENERAL Q] Spring boot Authenticating Apple user credentials
I am working on React native for front end, i managed to do Apple Sign in button, and after correctly logging in i receive a response of credentials containing the following:
I send these information to my backend which is in Spring boot
Now i would like to ask, generally what am i supposed to do with this information and how can i validate it so that i can send a response with my access_token and refresh_token back to the client?
I am completly lost on this
4 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 1/21/2024 in #java-help
[GENERAL Q] Spring boot Authenticating Apple user credentials
I am working on React native for front end, i managed to do Apple Sign in button, and after correctly logging in i receive a response of credentials containning the following:
I send these information to my backend which is in Spring boot
Now i would like to ask, generally what am i supposed to do with this information and how can i validate it so that i can send a response with my access_token and refresh_token back to the client?
I am completly lost on this
4 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 5/29/2023 in #java-help
I cannot use spring boot application on AWS EC2
Basically i have a running application on localhost, when i try to run my application on Aws ec2 , it gives me errors and i cannot understand why.
I uploaded the full error file but here is what is i think causing the issue:
70 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 5/24/2023 in #java-help
dependency suddenly stopped working
I use this AsciiTable dependency, the import no longer function i get this error:
and
22 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 5/17/2023 in #java-help
Socket input stream keeps closing or EOF Exception
This is a chunk of my Server class, i want the input stream to keep listening to the socket if other requests are called. But it keeps giving me error with the stacktrace:
Line 29 in server is :
38 replies
JCHJava Community | Help. Code. Learn.
•Created by Saeed Muhaisen on 12/21/2022 in #java-help
Weird issue that gets solved with println

17 replies