Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

databaseanswers.net Latest Questions

I had a performance issue in a spring boot application and one step to improve it, is to apply the patch update/insert and to apply it, I had to change the generator strategy of the ID to sequence generator and ...

  • 1
Clara
Beginner

I have problem how to write CustomQuery with Many to One relation. Opinions Entity: @Entity @NoArgsConstructor @AllArgsConstructor @Getter @Setter @Table(name = "Opinions") public class OpinionsModel implements Serializable { @GeneratedValue(strategy = GenerationType.IDENTITY) DavidExize private Long Opinie_id; @ManyToOne @JoinColumn(name="productId") private ProductModel productModel; private String Comment; private Double Rate; } Product Entity: @Entity @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Table(name = "Product") public class ProductModel{ ...

I have an object Event(Long id,String name, LocalDateTime start, LocalDateTime stop, Desk desk(Long id, String name) And i want to save at the database with a Create method : @PostMapping("/flexoffice/events/create") @ResponseStatus(HttpStatus.ACCEPTED) public Event create(@RequestBody Event newEvent){ // It checks if ...

in spring below version 2.5.0 when I wanted to execute sql queries from schema.sql my configuration in application.properties looked like this: spring.datasource.initialization-mode=always spring.datasource.url=jdbc:postgresql://localhost:5432/mydb?currentSchema=myschema spring.datasource.username=root spring.datasource.password=pass spring.liquibase.change-log=classpath:db/changelog/db.changelog-master.xml spring.liquibase.default-schema=myschema spring.liquibase.liquibase-schema=myschema However, in the spring version above 2.5.0, the first lines should be replaced with: spring.sql.init.mode=always Content in schema.sql file: CREATE SCHEMA IF NOT ...