Skip to content

Tag: spring

Spring JPA relationships

I have some troubles with Spring JPA relationships. I have two entities: Gift and Candy. And I want user to be able to select available candy and add it to gift. How can I do that using spring jpa? I’ve already tried ‘one to many’ relationship with gift as owning side, and I got “null …

Variables are not coming up null during Postman call

Setting up an Java Postman call assigning values to the variables but its shows null. My Pojo Student Class Postman Request Answer your request body should be like this: because you are getting StudentRequest as RequestBody and it means you should send StudentRequest internal properties not containing Student…

Error running a Java 8 batch with a jdk17

I’m trying to run a java 8 batch with a jdk17, the project is built with a jre1.8.0_192 and I put the following options in the VM: –add-modules=ALL-SYSTEM –add-opens=java.base/java.lang=ALL-UNNAMED –add-opens=java.base/java.math=ALL-UNNAMED –add-opens=java.base/java.net=ALL-UNNAM…

Can I extend MapStruct methods?

I’m developing a library and I expect the library to have a mapper like so: Which is meant for internal remapping. Now, I’d like to add a feature where the user can “override” this method, in the sense that they could for example add a statement to ignore the password of the account, w…