I just discovered, rediscovered actually, that with the JHipster project when you create an entity you are forced to start each variable name as lowercase, otherwise when you try to use the POST REST call the console responds with "Failed to load resource: the server responded with a status of 400 (Bad Request)". This seems like an odd error, is this across the board for REST calls or a JHipster specific problem? I don't want to report it as a bug if this is something that is a REST-wide syntax requirement.
Asked
Active
Viewed 348 times
0
-
Using lowercase variable names is a Java convention in general. Why do you want to use upper case (or title case) names? – Matt Raible Oct 10 '14 at 19:51
-
Not in all cases, one example would be a constant. – Built In Parris Oct 10 '14 at 20:20
-
True. Here's another Stack Overflow question that might help explain these conventions: http://stackoverflow.com/questions/1991316/where-is-the-javabean-property-naming-convention-defined – Matt Raible Oct 11 '14 at 16:33
-
Thanks Matt, if you repost it as an answer, I'll mark it as correct. – Built In Parris Oct 13 '14 at 13:05
1 Answers
1
Using lowercase variable names is a Java convention when developing POJOs. Here's another Stack Overflow question that might help explain these conventions:

Community
- 1
- 1

Matt Raible
- 8,187
- 9
- 61
- 120