Showing posts with label ibator. Show all posts
Showing posts with label ibator. Show all posts

2009-04-23

Ibator's deleteByExample() and MySQL.

If you use 'alias' when generating Ibator artifacts and your database is MySQL, you cannot use deleteByExample() because of MySQL bug #12811.
To workaround the issue, you can use the following plugin.

Adds equals() and hashCode() to Ibator's example classes.

Ibator includes EqualsHashCodePlugin by default.
It adds equals() and hashCode() methods to the domain classes.
As I want to add these methods to example classes, I wrote another plugin.

Avoid RuntimeException when null is passed to Ibator's example class.

Ibator's example classes are useful, but it throws RuntimeException when the passed value is null.
This is inconvenient when building a dynamic query conditions.

2009-02-22

Ibator plugin to add LIMIT clause to the example class

This Ibator plugin adds setLimitClause() method to example class.

2009-02-11

Ibator plugins for spring annotation users.

Ibator 1.2.x provides plugin architecture.
I like the plugin system and write some custom ones for my daily use.
The first plugin adds Spring's @Repository annotation to the DAO implementation class.