camelCase in JavaBean vs. underscores in yaml

714 views
Skip to first unread message

stephen friedrich

unread,
Sep 9, 2010, 8:42:57 PM9/9/10
to SnakeYAML
I am trying to read a YAML file generated by ruby.
---
tasks:
- remaining_effort:
created_at: 2010-08-20 21:23:25 Z

I already have a bean on the Java side:

public class TaskDto {
Integer remainingEffort;
LocalDateTime createdAt;

Can I make SnakeYAML map from camelCase to underscore notation and
vice versa?

Currently I am (correctly) getting an exception
Unable to find property 'remaining_effort' on class:
de.fortis.weblog.dtos.TaskDto

Andrey

unread,
Sep 10, 2010, 5:29:15 AM9/10/10
to SnakeYAML
Can you please create an issue ?
This feature requires quite some discussion, it is better to keep
track of it.
Reply all
Reply to author
Forward
0 new messages