-
MY PROJECTS
-
Recent Posts
- SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?
- SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?
- SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?
- SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?
- SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?
- SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
- SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?
- SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?
- SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?
- SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?
- ChromeDevTools.Watch all failed requests
- SQL.What are domain types (or constraints on data types), and how do they help enforce data correctness?
- SQL.How does SQL handle comparisons between different data types (for example, string vs number), and why is this dangerous?
- SQL.What is the difference between DATE, TIME, TIMESTAMP, and TIMESTAMPTZ, and which one should be used for business events?
- SQL.How do numeric types like INTEGER, BIGINT, DECIMAL, and FLOAT differ in terms of precision and use cases?
- SQL.What problems can arise from implicit type casting in SQL, and how can it affect indexes?
- SQL.How does NULL differ from 0, an empty string, or FALSE in SQL?
- SQL.What is the difference between CHAR, VARCHAR, and TEXT, and when would you choose each?
- SQL.What is MVCC ?
- SQL.What is AutoVacuum Postgres ?
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений
Category Archives: Без рубрики
Java.Hibernate.Medium.When to choose which strategy ?
✅ Short Answer SINGLE_TABLE → best for simple hierarchies with similar subclasses, prioritizing read performance. JOINED → best for normalized schemas when subclasses have many unique fields → prioritizes schema design and data integrity. TABLE_PER_CLASS → best when subclasses are … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.When to choose which strategy ?
Java.Hibernate.Medium.Explain the TABLE_PER_CLASS strategy.
✅ Short Answer The TABLE_PER_CLASS strategy maps each concrete subclass in an inheritance hierarchy to its own separate table, each with all fields from the base class + subclass.There’s no table for the abstract base class. 🔎 Detailed Explanation 🔹 … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Explain the TABLE_PER_CLASS strategy.
Java.Hibernate.Medium.Explain the JOINED strategy.
✅ Short Answer The JOINED strategy maps each class in an inheritance hierarchy to its own table, linking them by foreign keys, and represents a more normalized approach compared to SINGLE_TABLE. 🔎 Detailed Explanation 🔹 In JOINED, each entity class … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Explain the JOINED strategy.
Java.Hibernate.Medium.Explain the SINGLE_TABLE strategy.
understanding SINGLE_TABLE is key because it’s the most common (and default) inheritance strategy in JPA/Hibernate. Let’s break it down clearly: ✅ Short Answer The SINGLE_TABLE strategy stores all entities in an inheritance hierarchy in a single database table, using a … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Explain the SINGLE_TABLE strategy.
Java.Hibernate.Medium.What is default inheritance strategy ?
✅ Short Answer The default inheritance strategy in JPA/Hibernate is SINGLE_TABLE. 🔎 Detailed Explanation If you define an inheritance hierarchy with @Inheritance or even without specifying the strategy, JPA assumes: This means: All classes in the hierarchy share one table … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What is default inheritance strategy ?
Java.Hibernate.Medium.What inheritance strategies does Hibernate support?
✅ Short Answer Hibernate supports three main inheritance mapping strategies:1️⃣ SINGLE_TABLE → all classes in one table.2️⃣ JOINED → one table per class, joined by foreign keys.3️⃣ TABLE_PER_CLASS → one table per concrete class. 🔎 Detailed Explanation 🔹 1) SINGLE_TABLE … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What inheritance strategies does Hibernate support?
Java.Hibernate.Medium.Can we use subqueries in JPQL ?
✅ Short Answer Yes — JPQL supports subqueries, but only in the WHERE and HAVING clauses, not in the FROM clause. 🔎 Detailed Explanation 🔹 Where you can use subqueries in JPQL✅ WHERE clause → use a subquery to filter … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Can we use subqueries in JPQL ?
Java.Hibernate.Medium.What’s the difference between fetch joins and normal joins in HQL?
✅ Short Answer A normal join (JOIN, LEFT JOIN) combines tables/entities for filtering or constraints, but does not fetch related entities into your object graph. A fetch join (JOIN FETCH) loads the associated entities eagerly along with the parent in … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What’s the difference between fetch joins and normal joins in HQL?
Java.Hibernate.Medium.how JOIN FETCH solves the N+1 problem ?
✅ Short Answer A JOIN FETCH in JPQL/HQL tells Hibernate to eagerly load the parent and its associated entities in a single SQL query, instead of using separate queries per association.This eliminates the N+1 problem by reducing the number of … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.how JOIN FETCH solves the N+1 problem ?
Java.Hibernate.Medium.What is N+1 problem ?
✅ Short Answer The N+1 problem happens when an ORM (like Hibernate) executes 1 query to load N parent entities, and then N separate queries (1 per parent) to load their associated child entities → resulting in 1 + N … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What is N+1 problem ?