Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!

Join

java-help

❓︱qotw-answers

graphics

im trying to learn java graphics what class has graphics

Lombok Not Generating Getters in Spring Boot with MapStruct & Maven (Java 21)

I'm working on a Spring Boot project and facing an issue where Lombok is not generating getters for my entity class. Despite using @Data or @Getter, the getters are missing at compile time, leading to errors like "cannot find symbol getEmail()". My Setup (Dependencies & Plugins in pom.xml): ```xml <dependency>...

Thoughts on this ER-diagram?

Hi everyone, I'm working on a workforce scheduling system as part of my bachelor's thesis project, and I'd love some feedback on the ER diagram I designed. The system is designed to automate and optimize employee scheduling in workplaces where employees have different roles, work percentages (e.g., 40%, 60%, 100%), and preferences for shifts.
The goal is to allow managers to efficiently allocate shifts while considering constraints like availability, location, and shift types. Employees should also be able to express scheduling preferences (e.g., preferred working hours or locations).
ER Diagram Breakdown: ...
No description

help for javascript (code.hs) beginner

hey! if anyone can explain this to me as I’ve been struggling thank you!
No description

Rendering too resource-intensive

I am using Swing to render a graph in a window; however rendering is taking too long and is too resource-intensive. What changes can I make to help with performance? Here is the class responsible for rendering my graph: ```java public class GraphPanel extends JPanel { private Graph graph; private PathfindAlgorithm algo;...
No description

Not getting right platform details

I am working to get game presence data via discord but i am not getting right platform details. How to get is any other package or functions or classes in java?

What are some things and language features you use to reduce writing/time spent on boilerplate?

I've been working on a greenfield project lately and noticing how tedious it is to create entities, domain models, request/response objects, dtos, when they're all really just pojos. There are also other things that are redundant/boilerplate like. I'm wondering what new language features, libraries, and other things you add into your coding to reduce time spent on writing boilerplate?...

how to use validation in my controller?

hey guys. im looking for advice on this question. right now i have this: ```java @PostMapping(value = "/myendpoint", produces = "application/json") @ResponseStatus(HttpStatus.CREATED) public ResponseEntity<PaymentDTO> createPaymentInformation(@RequestBody @Valid PaymentDTO paymentInformationRequest){...

API Gateway is not getting registered on Eureka Server

I made a User-Service and Contact-Service and i have registered them on eureka server and the API of User and Contact Services are running perfectly fine but when i am going to register API Gateway on Eureka Server its not getting registered.

A FREE Claude 3.5 AI IDE

Does anyone knows about this tool Trae? I think it is such a good tool with free claude-3.5 . I hope he can support 3.7 as soon as possible.I like cool things, let's discuss! here is the link:https://sourl.cn/9NWN5g...

Best Practice for storing images spring boot

What is the best practice to store file paths in the database and the files in disk or storage service ?

linked lists vs ArrayList vs Arrays

what is the difference between a doubly LinkedList and an ArrayList. and how does that compare with Arrays (the class from java.util.Arrays)

How to have Dynamic Database Switching in Spring Boot While the project is running

Hello this is the git repo of the project : https://github.com/dambear/zynergy-api.git; The main database is declare is in application.properties the other database should be in organization table collumn it will be declared there. ...

How to sign executable jar with jsign or similar

So I have a game I want to share with a user who does not have Java. Im using launch4j to convert my .jar to .exe. I want to get rid of the antivirus warning. I found out I can do this by signing the application. I found out about Jsign for this....

I need help to compile source code of a plugin and make it a functioning .jar

i tried many tutorials with the javac prompt command but i keep failing so imma put the file here and hope someone of you knows how to do this

Sprign Data JDBC doesnt save my Domain

I have these classes: ```public class KarteikarteSet private UUID fachId; private UUID modulFachId;...

How to describe nested struct layout through jdk 22 ffm APIs?

Based on the example like [1]. I am able to access C compatible function. With following code, I am also able to access my custom Rust lib. ``` // JVM side MethodHandle addNumbers = { Linker linker = Linker.nativeLinker();...

__filename is not defined (node.js)

So I was searching for JavaScript variable thats return file name and I found __filename. Problem started when I wanted to use it and it returned an error: ```js PS C:\Users\Admin\Programowanie\Discord.js> node FOFMFFJSC.js file:///C:/Users/Admin/Programowanie/Discord.js/FOFMFFJSC.js:7...

android intents

I probably tried for over 4 hours by now to get intents working. i tried setting breakpoints at my intents handeling which should recieve all calls buts its just not. The NotificationShowcase.java also has some example notifications i tried to use including a function to make one with a intent like normal. as you can see there i tell it to use MainActivity.class but that class is just not receiveing them for whatever reason and i dont understand why. the full code is available here: https://github.com/HacktheTime/HypeNotify...

The import Interface cannot be resolved

The import Interface cannot be resolved IDier cannot be resolved to a type The method ToonDierGegevens() of type Dier must override or implement a supertype method ___ How can i fix this error?...
No description