Skip to content

Tag: spring-boot

Internalization in Spring Boot Application

Sorry for my english. I am working on a spring boot application and I have the following situation. I implemented internalization and I created a following configuration class Also I have two properties files messages.properties and messages_us.properties. And I defined a User entity class like this: When I t…

Escape colon (‘:’) in custom h2 Query

So I am trying to write a custom query for h2 using its JSON_OBJECT function. JSON_OBJECT uses a format of JSON_OBJECT(key:value) so as a simple example in my Spring repository I am writing a query like @Query(value = “SELECT JSON_OBJECT(‘id’:1)”, nativeQuery = true) When executing tha…