How to create Factory Pattern in Java
How to create a factory design pattern in Java using the example of creating a database table for multiple database engines.
Get and Set Field Value using Reflection in Java
How to get and set field value using reflection in Java. The tutorial covers all situations for a field: public, private and protected.
How to execute method using reflection in Java
How to execute method using reflection in Java. Example with all cases, with/without parameters and returning/no returning a value.
How to create object using reflection in Java
How to create an object using reflection in Java. Simple examples for both situations provided: with parameters or without parameters.
How to delete directory in Java
How to delete directory in Java using File.delete() method. Recursive delete is applied if the directory is not empty.
How to generate tables from entities using EclipseLink
How to generate entities from tables using EclipseLink. Simple example using one-to-one database relationship. @MappedSuperclass example included