Blog: software cave


221 blogs updated: 39 min. ago
Immutable objects
Most of the objects in Java are mutable. It means that their state/fields can be changed after the object was created. The examples of those...
9
15-04-2018 18:23:16 software cave Beginners
Delete directory with contents in Java
Removing empty directory in Java is as simple as calling File.delete() (standard IO) or Files.delete() (NIO) method. However, if the folder ...
7
24-03-2018 10:34:47 software cave Beginners
How to delete file in Java
File management (good old CRUD: create, read, update, delete) is quite common operation in software development. In this short post I would ...
6
05-03-2018 16:13:06 software cave Beginners
Mapping a map of simple types in JPA using @ElementCollection
In the previous post I have shown how to easily map a collection (e.g. Set or List) of simple types in JPA. Today I would like to present ho...
4
05-03-2018 10:03:05 software cave Beginners
Mapping collection of simple type in JPA using @ElementCollection
JPA framework provides good support for mapping collections of value types. The value types can be either simple types like Integer or Strin...
6
11-02-2018 13:12:42 software cave Beginners
Importing WSDL with Java and Maven
SOAP web services are often used in commercial software. If we plan to use existing SOAP web service, we should receive a WSDL file which de...
6
18-02-2017 16:26:39 software cave Beginners
Objects utility class in Java
Today I would like to quickly mention java.util.Objects class. The JavaDoc documentation for this class says: This class consists of static ...
7
15-02-2017 16:45:22 software cave Beginners
Default and static methods in interfaces in Java 8
Before Java 8 interfaces could only contain static fields (usually simple constants) and abstract methods. Java 8 provided the ability to de...
4
13-02-2017 16:34:58 software cave Beginners
Database schema creation in JPA using SQL scripts
Recent versions of JPA provide a feature to automatically create the database objects (like tables, sequences or indexes), load initial data...
6
12-02-2017 17:36:08 software cave Beginners
Reading text file line by line in Java
Reading text files from hard disk is quite common task in software development practice. Usually we are interested in processing it line by ...
3
18-12-2014 20:55:05 software cave Beginners


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.