|
You are here |
nabeelvalley.co.za | ||
| | | | |
journal.robbi.my
|
|
| | | | | We start with postgreSQL because this our primary database connection and we do all CRUD stuff from here. We need 2 class, which use for connection and configuration of datasource. DatasourceConfigurationPostgreSQL package com.robbi.demo.config.postgresql; import javax.sql.DataSource; import org.slf4j.Logger; import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import com.robbi.demo.utils.LoggerFactoryUtil; @Configuration public class DatasourceConfigurationPostgreSQL { private static final Logger L... | |
| | | | |
vladmihalcea.com
|
|
| | | | | Introduction As previously explained, the SINGLE_TABLE inheritance is the most efficient entity inheritance strategy. However, for JPQL query such as this one: Hibernate generates a SQL query which filters by the associated discriminator column (e.g. DTYPE by default): So, because we are filtering by the discriminator column, we might want to index it or include it to speed up queries. However, the default STRING DiscriminatorType expects a VARCHAR column that must hold the longest entity subclass name. ... | |
| | | | |
www.stackchief.com
|
|
| | | | | Spriong Data JPA interview questions including what different annotations mean, the difference between Spring Data JPA and Hibernate, and other advanced interview questions. | |
| | | | |
zignar.net
|
|
| | | Personal weblog about programming, linux, life, the universe and everything | ||