Search:

Type: Posts; User: phoenix; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    3,900

    By looking at the Spring source

    By looking at the spring source, I was able to do it now. Case closed.

    public User getUser(final String username) throws DataAccessException {
    HibernateTemplate template = new...
  2. Replies
    2
    Views
    3,900

    By "didn't work" I mean

    it sent out SQL to database each time this dao method is called (thus not using seond level cache).
  3. Replies
    2
    Views
    3,900

    enabling second level cache issue

    I was using second level cache of hibernate, and the following code, the content in my dao method, works. By that I mean if i repeatly run this dao method, only the first SQL was sent to the DB.
    ...
  4. HibernateTemplate supports uniqueResult() and query caching?

    It would be nice if hibernate template can support retrieving a single persisted object instead of a list. Also, enabling query cache by the template directly (not through its created Query object )...
Results 1 to 4 of 4