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...
Type: Posts; User: jamesdavit; Keyword(s):
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...
I know I cannot use "contains". The query I wrote was sort of a pseudo query. Let me try "in"...
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...
Solved with setting alwaysUseFullPath to true on both the urlMapping bean and the defaultControllerResolver bean.
Thanks,
James
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...
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...
I'll be more specific:
HttpSessionListener provides these methods:
public void sessionCreated(HttpSessionEvent httpSessionEvent) {
init(httpSessionEvent);
}
public void...
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...
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
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...
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...
Ah yes, you are referring to this target:
<bean id="extendedFinderNamingStrategy" class="pb.dao.finder.ExtendedFinderNamingStrategy" />
<bean id="abstractDaoTarget"...
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) {...
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) {...
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...
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...
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...
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...
Worked like a charm :) Many thanks!
Hello all,
I'm using a normalized structure to store my user/role data. The tables are defined as follows:
user:
+---------------+--------------+------+-----+---------------------+-------+
|...