Quantcast
Channel: User Norberto Ritzmann - Stack Overflow
Browsing latest articles
Browse All 20 View Live

Comment by Norberto Ritzmann on Spring Data JPA - How to programmatically set...

The way how the spring scans repositories is complex, that's a good reason to encapsulate it using this annotation and the easy class is not public. So, you should delegate to clients of your library...

View Article



Comment by Norberto Ritzmann on Spring Security: Custom UserDetailsService...

Only implementing a custom database-backed UserDetailsService should work. My guess is you need to add @ ComponentScan to Spring find out your @ Service class in your package.

View Article

Comment by Norberto Ritzmann on Spring JPA naming query with orderBy doesn't...

Would be nice if you just use the paged and sorted "findAll(Pageable)" method of JpaRepository, that could be used in all cases, with order or not, with the 1st result or more. Just inform you sorting...

View Article

Comment by Norberto Ritzmann on Java spring JPA Repository Entity is not deleted

Have you tried to put an @Transactional annotation at the service method?

View Article

Comment by Norberto Ritzmann on Dynamically set all properties files at runtime:

Properties is read onloy and just tell to the application what is configured. If you want to change the values by adding some information just encapsulate under a @ Configuration class, inject your...

View Article


Comment by Norberto Ritzmann on Apache Artemis unable to bind message...

Did you found the answer?

View Article

Comment by Norberto Ritzmann on Using spring cloud data flow , trying to...

Could you please inform what is in the logs of each application? The log above is just the SCDF server, the applications will be in:...

View Article

Comment by Norberto Ritzmann on When deploying a stream with MongoDB Sink I...

Thanks, @SabbyAnandan, it's updated.

View Article


Comment by Norberto Ritzmann on When deploying a stream with MongoDB Sink I...

Thanks, @Artem Bilan, I've concluded that the streaming between the two applications serializes the JSON String as a byte[]. I've added a processor between the source and the MongoDB Sink just to...

View Article


Answer by Norberto Ritzmann for Hibernate return empty object

Do not forget to use mappedBy property on ToMany annotations. In your case is necessary because you are using bidirectional association and every bidirectional association has an owner side and an...

View Article

Answer by Norberto Ritzmann for SpringBoot application doesn't autowire field

The below implementation works well for me. You have two issues, first you have to choose between @Service and @Bean and the other issue I've seen in your code was the @Value annotation, you have to...

View Article

Answer by Norberto Ritzmann for restcontroller post method 405 method not...

Your runtime jar isn't deployed with a post method corresponding with your path and parameters. Double check your deployment.

View Article

Answer by Norberto Ritzmann for Maven build to include file in root folder of...

Use the maven standard directory layout. No further configuration is required if you use these directories, the files will be added in classpath. For this kind of file is recomended to use the...

View Article


Answer by Norberto Ritzmann for mvn spring boot plugin breaks integration...

I've done it using these plugins in hierarchical structure: Parent | \pom.xml (Added tests plugins including maven-failsafe-plugin) | \ application-startup | \ pom.xml (Added spring-boot-maven-plugin)...

View Article

Answer by Norberto Ritzmann for Query DSL & Maven: Classes not generated, but...

The generated-source directory are not automatically included in the jar. You need to use the Maven build helper plugin to fix this issue, for example:...

View Article


Answer by Norberto Ritzmann for How to map temporary ids given by a frontend...

It would be best if you save each option individually and then save the generated Id on the map. I did the test below and it works perfectly. @Autowired void printServiceInstance(QuestionRepository...

View Article

Answer by Norberto Ritzmann for spring data save does only create cascaded...

I checked the DB and they are inserted! This happens by the entityManager just return new id of the current entity and not the related entities saved by cascade. After save your question try to find...

View Article


Answer by Norberto Ritzmann for I am getting...

If you have a SimpleMappingExceptionResolver try to check if you have conflicts with your ControllerAdvice annotated class. Exceptions have to be handled only in one place. As I said, it could be...

View Article

Comment by Norberto Ritzmann on Spring Vault returns null

@tweetysat can you add it as an answer? That is what was happening wrong with my code, thanks!

View Article
Browsing latest articles
Browse All 20 View Live




Latest Images