Articles Tagged ‘annotation’
Thursday, February 28th, 2019
Writing our manifest files for Kubernetes / Openshift often forces us to edit xml, json and yml files by hand.
A new library, ap4k allows to specify metadata for these manifest files directly in our Java code using annotations.
In the following short example I am going to demonstrate how to generate manifest files using Maven and ap4k.
(more…)
Tags: annotation, ap4k, aws, azure, container, docker, kubernetes, manifest, monitor, mounts, openshift, prometheus, s2i, tools, volumes
Posted in Development, Java | 1 Comment »
Sunday, February 5th, 2012
Often we’re writing an application that has to handle entities that – on the one side need to be persisted in a relational database using standards like the Java Persistence API (JPA) and using frameworks like Hibernate ORM or EclipseLink.
On the other side those entities and their fields are often stored in a highspeed indexer like Lucene. From this situation arises a bunch of common problems .. to synchronize both data sources, to handle special data mapped in an entity like an office document and so on..
Hibernate Search makes this all a lot easier for us as we’re hopefully going to see in the following short tutorial…
(more…)
Tags: annotation, hibernate, index, jpa, lucene, orm, persistence, query, term
Posted in Java | 4 Comments »
Monday, October 11th, 2010
Today we’re going to take a look at the world of object-relational Mapping and how it is done using the Java Persistence API by creating some basic examples, mapping some relations and querying objects using JPQL or the Criteria API..
(more…)
Tags: annotation, criteria api, eclipselink, example, hibernate, javadb, jee, jpa, jpa2, jpql, jsr-317, junit, mercurial, orm, persistence, toplink, tutorial
Posted in Java | 1 Comment »
Thursday, September 23rd, 2010
It is possible to create SOAP webservices with only a few lines of code using the JAX-WS annotations. In a productivity environment you might prefer using contract-first instead of code-first to create your webservice but for now we’re going to use the fast method and that means code-first and annotations olé!
(more…)
Tags: annotation, example, jax-ws, jsr224, soap, tutorial, webservice
Posted in Java, Web Services | 3 Comments »
Sunday, August 22nd, 2010
There is still the urban myth that using Spring IoC container without thousands lines of XML code isn’t possible – so today we’re taking a look at annotation based configuration with Spring 3 and of course we’re using Maven..
(more…)
Tags: annotation, aop, aspectj, dependency injection, guice, IoC, JSR-250, JSR-330, maven, spring
Posted in Java | 5 Comments »