Implementing Persistence with MyBatis and MyBatis-Plus: A Technical Overview

Understanding MyBatis Core Concepts MyBatis operates as a first-class persistence framework that simplifies database interaction by coupling SQL statements with Java objects. It abstracts the complexities of manual JDBC coding, including resource management and result set extraction. By utilizing XML descriptors or annotations, developers map p ...

Posted on Sat, 16 May 2026 12:39:47 +0000 by o3d

Eliminating Mapper XML Files with MyBatis Generic Mapper

Overview Generic Maper removes the need for manual mapper XML configuration files. In most scenarios, you don't even need to define custom mapper interface methods, which dramatically improves development productivity. Dependency Configuration For version 3.1.0 and later, use the following Maven dependency: <dependency> <groupId&gt ...

Posted on Fri, 15 May 2026 05:47:11 +0000 by Ansel_Tk1

Managing Databases with Flask-SQLAlchemy

Flask-SQLAlchemy is a powerful extension that integrates the SQLAlchemy ORM into Flask applications. It abstracts database interactions, allowing developers to communicate with various database systems—such as SQLite, PostgreSQL, and MySQL—using Pythonic object-oriented syntax. 1. Initializing the Extension To start, install the extension and b ...

Posted on Wed, 13 May 2026 21:45:26 +0000 by craygo

Mastering Django ORM: Database Integration, Model Mapping, and CRUD Workflows

HTTP form submissions typically transmit data via GET or POST methods. A submit input triggers immediate transmission, while a button input requires attaching an event listener to execute the request. Target URLs can be specified as absolute paths, relative endpoints (recommended), or omitted entirely to default to the current route. Back end h ...

Posted on Mon, 11 May 2026 02:35:37 +0000 by jordz

Entity Framework Core Configuration Reference

Convention-Based Configuration Core Mapping Rules Table names correspond to the DbSet property names defined in your DbContext Column names derive from entity property names, with data types selected based on the most compatible match for the property type (customizable) Column nullability aligns with the underlying property's nullability sett ...

Posted on Sun, 10 May 2026 05:48:38 +0000 by Jen_u41

MyBatis Return Types: Handling List, Map, and Fuzzy Queries

Returning List Results When querying multiple records, MyBatis can automatically map results to a Java List. The mapper XML uses the same select element, but the Java method declares List as the return type. Mapper Interface: public interface StudentDao { List<Student> selectAllStudents(); } Mapper XML: <select id="selectAllS ...

Posted on Sat, 09 May 2026 22:54:07 +0000 by ChaosKnight

Using Entity Framework Core for Data Persistence in ASP.NET Core

Entroduction to Entity Framework Core Database access code appears throughout web applications. Whether you're building an e-commerce platform, a blog, or the next big thing, you'll likely need to interact with a database. Unfortunately, interacting with databases from application code is often cumbersome. Many different approaches exist for th ...

Posted on Sat, 09 May 2026 16:33:23 +0000 by scottb1

Integrating MyBatis-Plus with Spring Boot

Core CapabilitiesSeamless Enhancement: Augments MyBatis without altering its original mechanics, ensuring frictionless adoption.Minimal Overhead: Basic CRUD operations are automatically injected upon startup, allowing direct object-oriented manipulation with negligible performance cost.Robust CRUD: Provides built-in generic Mapper and Service i ...

Posted on Sat, 09 May 2026 06:09:47 +0000 by neridaj

CRUD Operations on Databases with Django ORM

What is ORM? ORM (Object-Relational Mapping) is a technique that lets you interact with your database, like creating tables and performing CRUD operations, using an object-oriented paradigm. In simpler terms, you can think of a database table as a class, and each record in that table as an instance (object) of that class. Creating a class in Dj ...

Posted on Sat, 09 May 2026 03:00:04 +0000 by Dixen

Integrating MyBatis with Spring Framework

MyBatis-Spring Integration Before diving into the integration, let's review the core MyBatis components. Entity Class package com.example.entity; public class User { private Integer id; private String username; private String password; @Override public String toString() { return "User{" + ...

Posted on Thu, 07 May 2026 15:42:21 +0000 by binarymonkey