- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) … |
|
Re:
Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> … |
|
Hi all Situation is: old motherboard don't have SATA connector and had plugged on it one HD on the primary IDE and one DVD drive on secondary IDE connector. I wanted to connect new SATA HD (WD 5000 AAKS ) and bought IDE-to-SATA adapter, plugged it on the primary IDE, … |