If you are using an IDE such as Eclipse to do your business, you can use a quick weezard to do your dirty work for you.