Skip to content
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
Closed

Make SQL custom types assignable to other JDBC types #37

timowest opened this issue Nov 5, 2011 · 2 comments

Comments

@timowest
Copy link
Member

@timowest timowest commented Nov 5, 2011

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

@timowest
Copy link
Member Author

@timowest 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
Copy link
Member Author

@timowest 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant