Announcement Announcement Module
Collapse
No announcement yet.
hibernate jpa with spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hibernate jpa with spring

    Hi everyboby,

    I am having problems finding an up to date tutorial/doc, with the integration of these technologies as they are nowadays. Can anyone point me to a documentation?
    So many available out there, but many of them some years old and with very different perspectives?

    Regards.

  • #2
    Hi Inewie

    There are five sample programs in webflow each one has some database access. It's webflow 2.3.0.
    The sample applications are:
    booking-faces
    booking-mvc
    booking-portlet-faces
    booking-portlet-mvc
    jsf-booking

    For example in booking-faces
    @Transactional(readOnly = true)
    @SuppressWarnings("unchecked")
    public List<Booking> findBookings(String username) {
    if (username != null) {
    return em.createQuery("select b from Booking b where b.user.username = :username order by b.checkinDate")
    .setParameter("username", username).getResultList();
    } else {
    return null;
    }
    }

    Comment

    Working...
    X