Source Allies Logo

Blog Insights

  • development icon

    Hibernate Criteria trick

    So here's the situation. Let's say I have this query here: SELECT * FROM employees WHERE employee_id NOT IN ( 1234 , 3456 , 5678 ); How do we do that with the Hibernate Criteria object with a Restriction? You would think that the Restrictions API would have a "not in" method, since it...
  • development icon

    Image Processing Using ImageMagick and JMagick

    ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform...
  • development icon

    Regarding JPA - is the EntityManager a DAO...

    Do we really need ServiceInterface, ServiceImpl, DaoInterface, and DaoImpl? Or can we just say the EntityManager is the DAO, and blow away a generally unnecessary layer? On CRUD apps, 9x out of 10, the service layer is merely a pass-through to the DAO. Is there time to...