Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    11,780

    The "in" solution did not work, I got a SQL...

    The "in" solution did not work, I got a SQL syntax error returned by Hibernate.

    However I did a quick test with karldmoore's suggestion and that seems to be working (I need to test it out with...
  2. Replies
    7
    Views
    11,780

    I know I cannot use "contains". The query I wrote...

    I know I cannot use "contains". The query I wrote was sort of a pseudo query. Let me try "in"...
  3. Replies
    7
    Views
    11,780

    HQL "contains" query?

    Hi,

    I'm suppose this is a simple question, but I couldn't find anything on the Net (maybe I was looking with the wrong search terms)...

    What I want to do is create an HQL query that retuns the...
  4. Replies
    1
    Views
    971

    Solved with setting alwaysUseFullPath to true on...

    Solved with setting alwaysUseFullPath to true on both the urlMapping bean and the defaultControllerResolver bean.

    Thanks,
    James
  5. Replies
    1
    Views
    971

    Help needed with URL Mapping

    Hi,

    I'm trying to map a generic URL (/users/<username>) to my dispatcher, but I'm getting some errors. I'm sure I' misunderstanding the way it suppose to work - so maybe someone on the forum can...
  6. Replies
    0
    Views
    636

    Display non-form errors

    Hi all,

    Is there a best-practice of displaying non-form errors on a JSP page? For example, I have a non-form Controller that returns a new ModelAndView. Something goes wrong in the method of the...
  7. Replies
    2
    Views
    859

    I'll be more specific: HttpSessionListener...

    I'll be more specific:

    HttpSessionListener provides these methods:


    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
    init(httpSessionEvent);
    }
    public void...
  8. Replies
    2
    Views
    859

    Session start & container managed bean

    Hello,

    I was wondering how I can receive session start events in a container manager bean. I know I can create a class that implements

    javax.servlet.http.HttpSessionListener
    and add that class...
  9. Replies
    3
    Views
    666

    [Solved] Cascade delete overspill?

    Hmm, I tried your suggestion and it seems to work. Many thanks. I thought I needed the cascade to also delete the granted authorities, but I don't.

    Again, many thanks!
    James
  10. Replies
    3
    Views
    666

    Cascade delete overspill?

    Hi all,

    I'm new to Hibernate and I have a question about cascade delete...

    In my application I'm using user/role relationship in the following way:



    CREATE TABLE pb_user (
    id INTEGER...
  11. [Solved] Letting users remove their details from the database

    Hmm. Still not sure how this is suppose to work, but I have added the @Transactional annotation to all my data access methods (using Generic DAO) and the problem is gone. I'm sure there is some...
  12. Ah yes, you are referring to this target: ...

    Ah yes, you are referring to this target:


    <bean id="extendedFinderNamingStrategy" class="pb.dao.finder.ExtendedFinderNamingStrategy" />
    <bean id="abstractDaoTarget"...
  13. I *think* I found a solution to my problem...

    I *think* I found a solution to my problem described above. I have implemented the matches(Class clazz) method in FinderIntroductionAdvisor.


    @Override
    public boolean matches(Class clazz) {...
  14. I *think* I found a solution to my problem...

    I *think* I found a solution to my problem described above. I have implemented the matches(Class clazz) method in FinderIntroductionAdvisor.



    @Override
    public boolean matches(Class clazz) {...
  15. Thank you for your reply. It began when I started...

    Thank you for your reply. It began when I started introducing Generic DAO (http://www-128.ibm.com/developerworks/java/library/j-genericdao.html) configuration to my application. I think this is the...
  16. org.springframework.beans.TypeMismatchException

    Hi all,

    Another very strange message. I mean, I had this working before, but after moving to Generic DAO pattern I'm getting the following error message on one of my beans:

    16:19:18,471 ERROR...
  17. Interceptor's invoke() called without implementsInterface() check?

    Hi all,

    I'm fairly new to all this, so please don't hate me for asking stupid questions :)

    I'm trying to implement the Generic DAO pattern using the article at...
  18. Letting users remove their details from the database

    Hello all,

    I've searched the documentation and the Internet, but could not get a clear understanding of what I need to do in order to letting users remove their details from the database.

    So...
  19. Replies
    9
    Views
    1,405

    [Solved] Custom user/role tables

    Worked like a charm :) Many thanks!
  20. Replies
    9
    Views
    1,405

    Custom user/role tables

    Hello all,

    I'm using a normalized structure to store my user/role data. The tables are defined as follows:

    user:
    +---------------+--------------+------+-----+---------------------+-------+
    |...
Results 1 to 20 of 20