Handling Empty Values in Database Update Utility Classes

When working with Hibernate in projects, we often need generic database operation classes. While Tk MyBatis provides convenient utilities with methods that only update non-null values, empty strings are still processed as valid updates. This article presents a utility solution for converting empty strings to null values, along with a custom ann ...

Posted on Thu, 28 May 2026 20:45:17 +0000 by rjlowe

Comparing Activator.CreateInstance and Type.InvokeMember for Dynamic Object Instantiation

Dynamic Instance Creation via Activator.CreateInstance Activator.CreateInstance enables instantiation of types at runtime without compile-time knowledge. It belongs to System.Activator and suits scenarios such as plugin loading or assembly resolution where the concrete type is determined dynamically. Benefits Supports late-bound creation when ...

Posted on Mon, 25 May 2026 20:30:17 +0000 by keziah

Understanding Java Service Provider Interface (SPI) Mechanism

The Service Provider Interface (SPI) is a powerful service discovery mechanism built into Java. It enables frameworks to discover and load service implemantations dynamically by scanning configuration files in the META-INF/services directory on the classpath. Many popular frameworks including Dubbo and JDBC leverage SPI to provide extensible ar ...

Posted on Sat, 23 May 2026 22:51:40 +0000 by whit3fir3

Java Excel Export Utility Class

Refined an earlier utility class for exporting data to Excel format. Key Features: Supports header generation directly from class fields Data list accepts List<custom objects/primitive types/String> Utility uses varargs for flexible input handling Non-custom objects support nested lists like List<List<String>>, future enhance ...

Posted on Wed, 20 May 2026 20:08:46 +0000 by info@ipfaces.org

Dynamic Sorting Techniques for Entity Framework Queries

Implementing dynamic sorting in Entity Framework requires runtime expression construction. Here are two distinct patterns to handle property-based ordering without compile-time type knowledge. Pattern 1: Generic Expression Builder with Type Constraints This factory method creates strongly-typed ordering expressions but demands prior knowledge o ...

Posted on Tue, 19 May 2026 20:09:15 +0000 by chrisuk

C# Attributes: Creating and Using Custom Attributes

In C# development, you often encounter square brackets applied to classes, methods, and other code elements. These are known as Attributes, which provide a powerful mechanism for adding metadata to your code. This article explores how to create and use custom attributes in C#. What Are Attributes? Attributes are classes that allow you to add de ...

Posted on Mon, 18 May 2026 18:38:16 +0000 by tzuriel

Mastering .NET Architecture: Exceptions, Reflection, and Extensibility Patterns

Exception Handling Strategies Effective error management requires a clear boundary between infrastructure logic and user interaction. Exceptions should generally be caught at the upper layers to ensure appropriate user feedback, while lower layers should propagate errors rather than suppressing them. Swallowing exceptions hides critical failure ...

Posted on Sat, 16 May 2026 03:36:35 +0000 by madspoihur

Understanding Java Reflection: Dynamic Class Manipulation at Runtime

Many Java developers encounter reflection during their learning journey but often leave with only a vague understanding—or skip it entirely. This article demystifies what reflection is, how it works under the hood, and where it’s practically applied in real-world systems. What Is Reflection? According to Wikipedia, reflective programming refers ...

Posted on Fri, 15 May 2026 07:09:43 +0000 by lobo235

Implementing JDK Dynamic Proxies in Java

JDK dynamic proxies provide a mechanism to create proxy instances that implement specified interfaces at runtime. Here's a basic implementation: import java.lang.reflect.*; interface GreetingService { void greet(); } class GreetingServiceImpl implements GreetingService { public void greet() { System.out.println("Hello fr ...

Posted on Thu, 14 May 2026 08:33:27 +0000 by AtomicRax

Internal Reflection Utilities Within ysoserial Payloads

Effective exploitation via Java deserialization often hinges on bypassing access controls and instantiating objects without invoking standard constructors. The ysoserial toolkit addresses these challenges through specialized utility classes, primarily located in the payloads.util package. Two critical components facilitate these operations: Ref ...

Posted on Mon, 11 May 2026 10:04:07 +0000 by mr_zhang