java - Generate model entity class from MongoDB -
i'm using spring framework netbean, , try auto generate model entity class mongodb database. possible ? because i'm not sure missing concept or not mongodb dose not have structure ?
actually used generate model mysql connecter/driver mysql db , it's work.
can advise me ? thank you.
mongodb not have predefined structure. so, in collection(equivalence of table in mongodb) can save different types of data , mongodb accept them all. example consider these data:
{ "somekey": 5 } { "somekey": "5" } { "somekey": { "somefield": "some field", "someotherfield": isodate("2017-08-17t08:37:37.581z") } } all above of 3 json data can insert in same collection. framework or plugin cannot determine structure collection's inserted data too.
Comments
Post a Comment