- 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
3 Posted Topics
[QUOTE=SonxQ7;687360]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) …
[QUOTE=SonxQ7;686549] Exception [code] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.hibernate.MappingException: Foreign key (FKE0AAC4D7AF0E5654:SNX_PHONE_NUMBERS [USER_ID,PHONE_TYPE])) must have same number of columns as the referenced primary key (SNX_USERS [user_id]) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:113) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:96) at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1296) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1203) at …
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, …
The End.
vite