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

Column MetaData Access Via Path #283

Closed
ssaarela opened this Issue Nov 16, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@ssaarela
Contributor

ssaarela commented Nov 16, 2012

It would be very handy to get access to basic column metadata through Path objects. Then it would be possible to do some basic (e.g. length, nullability) validation while populating StoreClause without having to repeat these constraints in Java code. In generated code this could be something like:

public final SQLStringPath name = createString("name", new StringColumnMetadata(false, 64));

with

public class StringColumnMetadata extends ColumnMetadata {
public StringColumnMetadata(boolean nullable, int maxLength){...}
}

and

public class SQLStringPath extends StringPath {
public ColumnMetadata getColumnMetadata() {...}
}

I guess this information is already available in generated beans, but this would be generally more usable, as usage of those beans is (and should be) optional.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 17, 2012

Member

As this is Querydsl SQL specific it would be good to put this into a Querydsl SQL specific class such as RelationalPath.

I'll postpone this to a later release.

Member

timowest commented Nov 17, 2012

As this is Querydsl SQL specific it would be good to put this into a Querydsl SQL specific class such as RelationalPath.

I'll postpone this to a later release.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 29, 2013

Member

Now integrated via 4739193

Member

timowest commented Oct 29, 2013

Now integrated via 4739193

timowest added a commit that referenced this issue Oct 29, 2013

timowest added a commit that referenced this issue Oct 30, 2013

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 17, 2013

Member

Released in 3.3.0.BETA1

Member

timowest commented Nov 17, 2013

Released in 3.3.0.BETA1

@timowest timowest closed this Nov 17, 2013

@timowest timowest added this to the 3.3.0 milestone Apr 13, 2014

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