MyBatis CRUD Operations, XML Mappings, and Dynamic SQL
MyBatis is an open-source Java persistence framework that simplifies data base interactions by reducing JDBC boilerplate code. It supports custom SQL, stored procedures, and advanced mappings. This article covers basic CRUD operations using annotations, XML mappings, and dynamic SQL.
Basic CRUD with MyBatis
Start by creating a Spring Boot pr ...
Posted on Thu, 29 Oct 2026 16:21:31 +0000 by mimcris
Spring JdbcTemplate for Database CRUD Operations
Required external JAR packages:
mysql-connector-java
druid
Configuring Druid Connection Pool
<!--Database connection pool configuration-->
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" destroy-method="close">
<property name="url" value="jdbc:mysql://local ...
Posted on Mon, 12 Oct 2026 16:17:01 +0000 by Sharif
Implementing a Reusable SQL Database Helper in C#
Ancapsulating database operations into a dedicated helper class proomtes code reuse, maintainability, and separation of concerns.
Database Helper Clas
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
namespace DataAccessLayer
{
public class SqlDbManager
{
private SqlConnection _activeConne ...
Posted on Sun, 11 Oct 2026 16:20:22 +0000 by mighty
Backend Development for an MBTI Personality Test Application (Basics)
Requirement Analysis
Database Schema Design
Backend Project Initialization
Basic Backend Development – CRUD Operations
Interface Development
Service Layer Implementation
Core Business Logic
Requirement Analysis
The goal here is to clearly define what needs to be built and prioritize these requirements to shape the development roadmap.
a. Func ...
Posted on Thu, 01 Oct 2026 16:51:52 +0000 by biffjo
Interface Segregation Principle: Fine-Grained Contracts for Modular Systems
Interfaces define the contract between a client and its implementation. The Interface Segregation Principle (ISP) asserts that interfaces should be narrow, focused, and tailored to specific client needs—never bloated with unnecessary members.
Every method, property, or event in an interface must serve a coherent purpose. If not all clients requ ...
Posted on Tue, 29 Sep 2026 16:50:06 +0000 by sak
SQLAlchemy CRUD Operations and Relationship Handling
This guide demonstrates how to perform basic Create, Read, Update, and Delete (CRUD) operations using SQLAlchemy's Object-Relational Mapper (ORM), along with managing one-to-many and many-to-many relationships.
Defining Database Models
SQLAlchemy's ORM allows you to map Python objects to database tables. This involves defining classes that i ...
Posted on Tue, 29 Sep 2026 16:13:39 +0000 by eneficus
Implementing CRUD Operations with Spring Boot, MyBatis-Plus, and JSP Views
Controller for Managing Receiving Addresses
package com.example.web.controller;
import com.example.core.entity.DeliveryAddress;
import com.example.core.service.DeliveryAddressService;
import com.example.core.util.ServiceResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
im ...
Posted on Sat, 26 Sep 2026 16:16:38 +0000 by stefandv
Implementing CRUD Operations with MyBatis XML Mappers
Implementing data persistence logic requires a clear mapping between Java objects and database tables. The following demonstration outlines the configuration and execution of Create, Read, Update, and Delete (CRUD) operations using MyBatis.
Entity Class Definition
First, define a Plain Old Java Object (POJO) to represent the data structure. T ...
Posted on Fri, 18 Sep 2026 16:28:18 +0000 by sungpeng
Building RESTful CRUD Services with Spring Boot and MyBatis
Environment Setup
Database Schema
Create a MySQL database named springboot and a table t_user to hold user records.
CREATE DATABASE `springboot`;
USE `springboot`;
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`name` VARCHAR(10) DEFAULT NULL COMMENT 'User name',
`age` ...
Posted on Fri, 04 Sep 2026 16:48:03 +0000 by krishnam1981
Implementing CRUD Operations and Popup Interactions with LayUI
To streamline development of data management interfaces, creating reusable templates for CRUD (Create, Read, Update, Delete) operatiosn proves efficient. LayUI offers components for building such interfaces with consistent styling and behavior.
User List Interface The list view features search controls, action buttons, and a data table. Below i ...
Posted on Mon, 31 Aug 2026 16:33:55 +0000 by aviatorisu