i want to make a small tool to generate java bean from any table in database ..

please help me and give me some advices ?