[Hibernate] Using UserType for composite primary keys

2003-09-19 Thread Yin Shi
Hi all, Could anybody talk about how to use User Defined UserType to handle composite Primary Keys? I used to use , but it is not working for JCS, so just wandering if someone has examples on this? Any comments are really helpful! Thank you very much! __ Do you

[Hibernate] How to use JCS in Hibernate

2003-09-10 Thread Yin Shi
Hi all, In our database, there is a table called codsc. We access the codsc table many times in all parts of our application. The data rarely changes, so it is a good candidate for caching. The primary key of codsc is id, code. The columns we need cached are desc, dstat. Basically we want

[Hibernate] Where to put hibernate.cfg.xml

2003-08-18 Thread Yin Shi
Hi, I am using WSAD5 and Hibernate2, I do not know where to put the .cfg.xml file, because I tried to put it in every directory, they are not working at all. Do you know where to put it? I just have a Web Project, inside the Java Source, I have a java class Cat.java (setter/getter), and a servlet

[Hibernate] How to use Hibernate in WSAD5

2003-08-15 Thread Yin Shi
Hi friends, I am using WSAD5. I am new to Hibernate, and I tried to use it in a pure Java project, and ran it by a Java Application (has main class), which was ok. But when I tried it in a Web Application, write a servlet to access the Hibernate, every time it just failed, the error message is: