MEMORYNOTFOUND Java Tutorials and Code Examples

javascript tutorials

How to prevent number input in JavaScript/JQuery

This tutorial demonstrates how to prevent number input on a textfield using JavaScript/JQuery. This example prevents number input from the numpad and the numbers above the keyboard. Prevent number input using plain javascript, with the...
java tutorials

Converting a String into a Date in Java

This tutorial shows how to convert a java.lang.String into a java.util.Date. We can convert a String into a Date using the parse() method of the DateFormat and SimpleDateFormat classes. // from java.lang.String into java.util.Date String...
java tutorials

Getting Current Date and Time in Java

This tutorial shows how to get the current date and time in Java. The standard Java classes we can use are java.util.Date, java.util.Calendar and the new java 8 java.time.LocalDateTime and java.time.ZonedDateTime. You could also use...
JPA - Java Persistence API - tutorials

JPA EntityManager Example

This tutorial shows how to work with the Java Persistence API. The purpose of JPA is to create an abstraction layer between the database layer and an ORM framework. This enables us to loosely couple...
hibernate tutorials

Hibernate Dynamic-Update Attriburte Example

This tutorial shows how to use the dynamic-update attribute or @DynamicUpdate annotation used by Hibernate. This attribute/annotation tells Hibernate to only include the updated properties of the entity in the SQL UPDATE Statement. Dynamic-update=false By...
hibernate tutorials

Hibernate dynamic-insert attriburte example

This tutorial shows how to use the dynamic-insert attribute or @DynamicInsert annotation used by Hibernate. This attribute/annotation tells Hibernate whether to include null properties in the SQL INSERT statement. Dynamic-insert=false By default, dynamic-insert is set...