anchor.diff:  proposal
   http://balusc.omnifaces.org/2007/12/validator-for-multiple-fields.html[here].
   
  -[[logging-best-practices]]
  -Logging best practices
  -~~~~~~~~~~~~~~~~~~~~~~
  -
  -[[framework]]
  -Framework
  -^^^^^^^^^
  -
  +== Logging best practices
  +=== [[logging-choice]]Framework
   One of the PITA in Java world is the multiplicity of logging framework.
  -My personal choice is to go for JUL for Java EE projects and SLF4J +
  -logback for Java SE projects.
  +My personal choice is to go for JUL for Java EE projects and SLF4J plus logback for Java SE projects.
  
positive.code: delimited identifiers occurs when using an entity named `User`: this may
  work on some DBMS and fail at runtime on others.
  
  [[metamodel-generator-for-typesafe-jpa-queries]]
  Metamodel generator for typesafe JPA queries
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
  To generate the metamodel for use with typesafe Criteria queries,
  suffices to include a metamodel generator in your classpath
  (http://hibernate.org/orm/tooling/[doc]). Set it to `<provided>` scope
  
negative.code: = Samples
  :toc:
  :toc-placement: preamble
  :sectanchors:
  
  Here are some samples about Java EE technologies (JPA in Java SE is
  covered as well). They serve two purposes:
  
  * give a head start (if you want a correctly configured project as a basis for work); and
  * support discussion around “best” practices by showing their applications in concrete, simple cases.
  
  Scroll down for the discussion about (what I consider to be) the best practices.
  
  == The sample projects
  All projects use Maven.
  
  === JavaEE-Inject-Produces-Servlets
  Shows usage of CDI (Injection of managed beans) and producers together
  with simple servlets. Note that you do not need to understand producers
  to be able to use CDI, so do not look there yet if you just want to know
  