New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SQL custom types assignable to other JDBC types #37

Closed
timowest opened this Issue Nov 5, 2011 · 2 comments

Comments

Projects
None yet
1 participant
@timowest
Member

timowest commented Nov 5, 2011

The JDBC type should be assignable via the constructor, with a reasonable default value in the default constructor

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 5, 2011

Member

This simplifies the following usage

Configuration configuration = new Configuration();
configuration.register(new LongType() {
    public int[] getSQLTypes() {
        return new int[]{Types.NUMERIC};
    }
});

into

Configuration configuration = new Configuration();
configuration.register(new LongType(Types.NUMERIC));
Member

timowest commented Nov 5, 2011

This simplifies the following usage

Configuration configuration = new Configuration();
configuration.register(new LongType() {
    public int[] getSQLTypes() {
        return new int[]{Types.NUMERIC};
    }
});

into

Configuration configuration = new Configuration();
configuration.register(new LongType(Types.NUMERIC));
@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 19, 2011

Member

Released in 2.2.5

Member

timowest commented Nov 19, 2011

Released in 2.2.5

@timowest timowest closed this Nov 19, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment