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.
Autoboxing and Unboxing in Java
In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.
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
How to create XML file in Java using DOM
How to create XML file in Java using DOM. Simple example with pretty printing to output the content to console or to a file.
How to define one-to-one relationship in MySQL
How to define one-to-one relationship in MySQL using the foreign key and unique property to limit the row count from the child table
Configure database connection in Eclipse
How to configure database connection in Eclipse. Configure new Connection Profile to any database engines.