Thanks John and to everyone who have posted their solutions here. It worked, so
it is important to implement Comparable (NOT comparator) on your Entities, if
you are planning to use SortedSet as I have done.
Thx
Vijay
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewto
I have used the SortedSet instead of List and the OneToMany relation works when
I write or update but when I retrieve my composite object it gives a
ClassCastException on the TreeSet Compare. I do not know why as I have my
object as a comparator and it implements a compare method??
publ
By the way; I have auto-increment turned on, in the database for the primary
keys(ie the id) for both the measurement and the count tables.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952535#3952535
Reply to the post :
http://www.jboss.com/index.html?modu
I have two classes Measurement and Counts they have a One to Many relation. I
have the following annotations in place:
Measurement:
...
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER,
mappedBy="measurement")
public List< Counts > getCounts()
{
return counts;
}
Co
Thanks to Jani for the code. Of course, Tomcat valve would be also helpful. Looking
forward to an answer to nivek's query !!
Vijay
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834122#3834122
Reply to the post :
http://www.jboss.org/index.html?module=bb&op
I agree with Jani. And, also appreciate the response from scott. But could you please
explain little bit more when you say, "Use a servlet filter or tomcat valve then", or
point me to some more details on this.
Thanks
Vijay
View the original post :
http://www.jboss.org/index.html?module=bb&op