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

Column MetaData Access Via Path #283

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

Column MetaData Access Via Path #283

ssaarela opened this issue Nov 16, 2012 · 3 comments
Assignees
Milestone

Comments

@ssaarela
Copy link
Contributor

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

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

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

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

Successfully merging a pull request may close this issue.

None yet
2 participants