This class contains the whole treatment. The main class parses partially command line arguments and call appropriate methods to parse the command line arguments and the generation methods. Usage :
java -jar LazySolth.jar [-java|-sql|-both] Table_Name Column1 Column2...
The accepted options :
-java : to generate only java
-sql : to generate only sql
-both : to generate both java and sql.
The column starts with a letter to specify the data type and the rest is the column name. Accepted data types are :
i for Integer,
n for Double,
s for String,
d for Date,
We'll try to add more data types in next versions.
You can add other properties using ":" :
if it starts with s : for size, the rest of the property will be parsed to an integer,
if it starts with an a : for auto_increment (for MySQL, doesn't affect Java code),
if it starts with a p : for Primary Key.
Example :
java -jar LazySloth Example nid:pk sfirstname:s40 slastname
Source code is accessible via SVN.

Features

  • Generates Java Bean code
  • Generates SQL Create Table query

Project Samples

Project Activity

See All Activity >

Follow LazySloth

LazySloth Web Site

Other Useful Business Software
Share your screen instantly while on a phone call with CrankWheel for an engaging presentation. Icon
Share your screen instantly while on a phone call with CrankWheel for an engaging presentation.

For salespeople and customer service agents who want to compliment their phone calls with visual elements.

Our 10x simpler screen sharing tool is designed for you if you spend your days on the phone with clients, and need to add a visual presentation to close sales. No more scheduling a follow-up meeting, or teaching them to use a complex tool. Send them a text message or email, and they see your screen in seconds.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of LazySloth!

Additional Project Details

Registered

2017-01-01