I am talking about procrastination.
At my levels (software engineering) it is an art form. For example, today I had to write some SQL code - code that creates a new table in a database. Here's how I did it:
- Create a new class, and annotate it with @Entity (javax.persistence.Entity)
- Add fields. As many as you want.
- Use IDE to generate getters and setters for those fields.
- You're already using HibernateJpaVendorAdapter. You're not???! Beat it, man. Ok now just call the method .setGenerateDdl(true) on it.
- The eeeennnnnd.
Well, that took 30 seconds!
No comments:
Post a Comment