Mongodb: Naming convention of collection "key" and corresponding naming convention in json REST service

643 views
Skip to first unread message

dilip kumar

unread,
Jan 16, 2013, 2:31:51 PM1/16/13
to mongod...@googlegroups.com
Hi All,

In my project we were using Oracle and HTML5. Now we are migrating to MongoDB and HTML5. 

In Oracle database we use name of the column for example "LIBRARY_ID" and in the JSON REST service being used in HTML5 we use all in lower case i.e. "libraryid". 

What is best naming convention of collection fields in MongoDB? I want don't want to apply any conversion of field name from MongoDB collection to JASON REST service. Following is what I want. 

1. Library collection in MongoDB
{library_id:"12234234", title:"My Library"}
2. However since this is existing application therefore is REST service 
{libraryid:"12234234", title:"My Library"}

Now my question is; does MongoDB suggest any naming convention to define collections? Is there easy adapter JAVA libraries available to convert mongodb field name to REST service field name expected by HTML5 UI. 

Please advice. 

Thanks,
Dilip
Reply all
Reply to author
Forward
0 new messages