Java constantly evolves as a standard. It is rapidly improving and shifting towards better usability, reducing boilerplate code. This not only increase the productivity of the software development team but also keeps Java on top of the technology wave.
There were a lot of historical changes. Java EE was introduced by Sun Microsystems, which worked hard on creating a sustainable community. They also introduced the Java EE standard to facilitate compatibility between different enterprise solutions written in Java. Java EE standard, now part of Eclipse foundation, is expected to keep the innovation push and to keep the compatibility between different vendors. This time the need of the business and the community will drive the changes.
Do you have a Java EE 8 server?
If yes, you could enjoy the latest JPA 2.2 update and new features.
Native support of the Java 8 Date Time library and you are not required to convert java.util.Date and java.sql.Timestamp.
This means no need to specify any Java annotation like “@Temporal” in the past. On top of that there is no need to apply any conversion between the Java EE date format and Java Date time. This is a small win, but many developers will agree that having a beautiful, elegant and easy-to-read code, give a big helpful to any software development language. It also reduce mistakes and maintenance cost.
Attribute converters can be now be injected
Do you remember all those pesky converters and how much manual work developers have to perform to do a simple conversion action. At the moment they are configurable using the pattern: @Convert(converter=<insert converted class here>)
You can now have a greater flexibility. The dependency injection becomes even more powerful than before.
Streaming results for Queries.
Java 8 biggest achievement is the introduction of lambda expressions. They help developers to write a more elegant code. This new feature is also now available in the Java EE. When you use Queries to get the data and then to manipulate it as a stream and do lambda expressions on top of it.
And it is simple all you need to do is to use the method “.getResultStream();”.
Be careful when dealing with a large amount of data, because this could consume a lot of memory. If you use this feature, then the software will fetch all the data and store it in the memory and after that will start with the data manipulation.
Repeatable annotations.
Annotations are made repeatable, this means that you can use them directly without the need to wrap them in other annotations.
Java constantly evolves as a standard. It is rapidly improving and shifting towards better usability, reducing boilerplate code. This not only increase the productivity of the software development team but also keeps Java on top of the technology wave.
There were a lot of historical changes. Java EE was introduced by Sun Microsystems, which worked hard on creating a sustainable community. They also introduced the Java EE standard to facilitate compatibility between different enterprise solutions written in Java. Java EE standard, now part of Eclipse foundation, is expected to keep the innovation push and to keep the compatibility between different vendors. This time the need of the business and the community will drive the changes.
Do you have a Java EE 8 server?
If yes, you could benefit from the latest JPA 2.2 update and new features.
Native support of the Java 8 Date Time library and you are not required to convert java.util.Date and java.sql.Timestamp.
This means no need to specify any Java annotation like “@Temporal” in the past. On top of that there is no need to apply any conversion between the Java EE date format and Java Date time. This is a small win, but many developers will agree that having a beautiful, elegant and easy-to-read code, give a big advantageous to any software development language. It also reduce mistakes and maintenance cost
Attribute converters can be now be injected
Do you remember all those pesky converters and how much manual work developers have to perform to do a simple conversion action. At the moment they are configurable using the pattern: @Convert(converter=<insert converter class here>)
You can now have a greater flexibility. The dependency injection becomes even more powerful than before.
Streaming results for Queries.
Java 8 biggest achievement is the introduction of lambda expressions. They help developers to write a more elegant code. This new feature is also now available in the Java EE. When you use Queries to get the data and then to manipulate it as a stream and do lambda expressions on top of it.
And it is simple all you need to do is to use the method “.getResultStream();”.
Be careful when dealing with a large amount of data, because this could consume a lot of memory. If you use this feature, then the software will fetch all the data and store it in the memory and after that will start with the data manipulation.
Repeatable annotations.
Annotations are made repeatable, this means that you can use them directly without the need to wrap them in other annotations.
Aleks Vladimirov
Solution Engineering Manager at Thales | Senior IT Professional | Startup Mentor and Product Manager