Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding date-time types to Maven plugin mojo configuration #531

Merged
merged 1 commit into from
Mar 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,31 @@ public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi
*/
private boolean useJodaLocalTimes = false;

/**
* What type to use instead of string when adding string type fields of
* format date-time to generated Java types.
*
* @parameter expression="${jsonschema2pojo.dateTimeType}"
* @since 0.4.22
*/
private String dateTimeType = null;

/**
* What type to use instead of string when adding string type fields of
* format time (not date-time) to generated Java types.
*
* @parameter expression="${jsonschema2pojo.timeType}"
* @since 0.4.22
*/
private String timeType = null;

/**
* What type to use instead of string when adding string type fields of
* format date (not date-time) to generated Java types.
*
* @parameter expression="${jsonschema2pojo.dateType}"
* @since 0.4.22
*/
private String dateType = null;

/**
Expand Down