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

  • webflow with hibernate

    Hi

    If I have a flow as follows
    <persistence-context />

    <view-state id="search" view="search" model="searchCriteria">
    <transition on="submitRegistration" to="display">
    <evaluate expression="service.getByCriteria(searchCriteria, persistenceContext)"
    result="flowScope.list"/>
    </transition>
    </view-state>

    Am I right in thinking I can pass the persistenceContext as an argument to the service call ?

    In the service method then what type is the persistenceContext ? Session ? EntityManager?

    I am planning to use the hibernate DAO

    What would be the second parameter type ?

    public List<Thing> getByCriteria(SearchCriteria searchCriteria, WHATTYPE persistencecontext) {

    Next can I do
    Session session = (Session) persistencecontext ?

    Thanks

  • #2
    I would have thought this was an easy question for a spring expert. But I have found the spring forums very slow for getting responses.
    Do others find this?

    Comment

    Working...
    X