Using the Session¶
ORM Mapped Class Configuration で説明されている宣言ベースとORMマッピング関数は、ORMの主要な設定インタフェースです。マッピングが設定されると、パーシステンス操作の主要な使用インタフェースは Session
になります。
- Session Basics
- State Management
- Cascades
- Transactions and Connection Management
- Additional Persistence Techniques
- Embedding SQL Insert/Update Expressions into a Flush
- Using SQL Expressions with Sessions
- Forcing NULL on a column with a default
- Fetching Server-Generated Defaults
- Case 1: non primary key, RETURNING or equivalent is supported
- Case 2: Table includes trigger-generated values which are not compatible with RETURNING
- Case 3: non primary key, RETURNING or equivalent is not supported or not needed
- Case 4: primary key, RETURNING or equivalent is supported
- Case 5: primary key, RETURNING or equivalent is not supported
- Notes on eagerly fetching client invoked SQL expressions used for INSERT or UPDATE
- Using INSERT, UPDATE and ON CONFLICT (i.e. upsert) to return ORM Objects
- Partitioning Strategies (e.g. multiple database backends per Session)
- Bulk Operations
- Contextual/Thread-local Sessions
- Tracking queries, object and Session Changes with Events
- Session API