Help coderanch get a
new server
by contributing to the fundraiser

Kata Franciscan

Greenhorn
+ Follow
since Jul 24, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kata Franciscan

Hi all
In my opinion, the notion of a "career" in Software Development is a bit strange. Isn't a "successful career" normally about earning as much money as possible while having power over the biggest number of employees possible?
I chose to work in Software Development precisely because those things do not matter to me, I want a job that is challenging my brain and lets me solve problems in programming with my own hands, not with the hands of people I can tell to do this for me. The work of a programmer involves learning new things every day, meeting interesting people, work in different teams on different projects, so why would I want to be a boss who spends most of his time in meetings?
Anyone out there who has similar feelings?
Cheers,
Kata
15 years ago
Hi,
I have a DB table containing names which should be unique. My name class looks (partly) like this:


However, if I now try to insert a new name into the db:
HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate().saveOrUpdate(nameObject);

I see an exception if the name is already in the database:

Can anyone here tell me what is wrong? I am a newbie containing Annotations, Hibernate, PostgreSQL and Spring, so the problem might be anywhere ...
Anyway, for the purposes of anyone learning for the SCJP, it would be nice if there was a list of all the checked exceptions thrown in the packages used for the SCJP. As it is, lots of questions deal with whether it is a "Compiler Error" or a "Runtime Exception", meaning you have to know whether the exception is checked or unchecked. Say, concerning threads for example, InterruptedException is checked but IllegalMonitorState is not etc. etc.

If we had a list of all checked ones to memorize (and not just always IO, which is always the one used as an examples), it would be easier to prepare for that sort of questions. If anyone has ever found such a list, I would be really grateful if it could be posted here (of course I know that there can always be new checked or unchecked exceptions and that every single case can be looked up in the API docs, but I do not want to browse the docs for all classes that are on the SCJP if someone else has already done that.)