-
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.So we don’t need write here “on tableA.key = tableB.foreignKey” ?
✅ Short Answer Correct: In JPQL/HQL joins, you do not write ON tableA.key = tableB.foreignKey like in SQL.Instead, you navigate mapped entity relationships using Java object paths (e.g., o.customer) → JPA knows how to join based on the entity mappings … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.So we don’t need write here “on tableA.key = tableB.foreignKey” ?
Java.Hibernate.Medium.How do you join tables using HQL?
In JPA, you join tables by navigating entity relationships in JPQL/HQL queries, using JOIN, LEFT JOIN, or JOIN FETCH — just like in Hibernate HQL — since JPA uses JPQL as its standard query language. 🔎 Detailed Explanation JPA Joins … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.How do you join tables using HQL?
Java.Hibernate.Medium.How do you join tables using HQL?
✅ Short Answer In HQL (and JPQL), you join tables by navigating entity associations using JOIN, LEFT JOIN, and their FETCH variants — using entity relationships, not table names. 🔎 Detailed Explanation Types of joins you can use in HQL:1️⃣ … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.How do you join tables using HQL?
Java.Hibernate.Medium.What are positional vs. named parameters in HQL?
✅ Short Answer Positional parameters use index-based placeholders like ?1, ?2, etc., which are set by their numeric position in the query. Named parameters use named placeholders like :name, :status, which are set by their explicit names. 🔎 Detailed Explanation … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What are positional vs. named parameters in HQL?
Java.Hibernate.Medium.Describe all types of queries, including spring ones, when to use which ?
✅ Main Types of Queries 🔹 1) JPQL (Java Persistence Query Language) Queries What: Object-oriented, database-agnostic query language operating on entity classes and their fields. How: Dynamic JPQL → createQuery(“SELECT e FROM MyEntity e WHERE …”) Named JPQL queries → … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Describe all types of queries, including spring ones, when to use which ?
Java.Hibernate.Medium.Give examples of different types of queries ?
✅ Short Answer Alternatives to named queries include: Dynamic JPQL queries created at runtime with createQuery(). Criteria API, which builds type-safe queries programmatically. Native SQL queries for complex or DB-specific needs. Framework-specific solutions (e.g., Spring Data JPA repository methods with … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Give examples of different types of queries ?
Java.Hibernate.Medium.Why do i need named queries ?
✅ Short Answer You need named queries to centralize, reuse, and pre-validate your queries, improving maintainability, consistency, and safety across your application. 🔎 Detailed Explanation 🔹 Centralization Instead of scattering query strings across your codebase, you define them once, tied … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Why do i need named queries ?
Java.Hibernate.Medium.What are named queries and how do you define them?
✅ Short Answer Named queries are predefined, reusable JPQL or SQL queries associated with entity classes, given a unique name.You define them using the @NamedQuery or @NamedNativeQuery annotations — or XML mappings — and later execute them by name in … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What are named queries and how do you define them?
Java.Hibernate.Medium.What is the difference between detach() and delete()?
✅ Short Answer detach(): removes an entity from the current persistence context — it becomes detached, but stays in the database. delete() (or EntityManager.remove()): marks the entity for deletion from the database, and after commit, its row is permanently removed. … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.What is the difference between detach() and delete()?
Java.Hibernate.Medium.Explain cascading types like CascadeType.PERSIST and CascadeType.REMOVE.
✅ Short Answer CascadeType.PERSIST → when you save the parent entity, Hibernate automatically persists associated child entities. CascadeType.REMOVE → when you delete the parent entity, Hibernate automatically deletes associated child entities. 🔎 Detailed Explanation Cascading in JPA/Hibernate allows certain operations … Continue reading
Posted in Без рубрики
Comments Off on Java.Hibernate.Medium.Explain cascading types like CascadeType.PERSIST and CascadeType.REMOVE.