I transferred a table
from postgresql
to mongodb
.I want to map this collection
to a class
. Is there a easy way to create the class
of this collection
?
Asked
Active
Viewed 232 times
0

akinKaplanoglu
- 728
- 2
- 8
- 26
-
Do you want automatically generate a new class? or do you want to use already exists java class ? – Oleg Apr 06 '15 at 16:59
-
I want it to be automatically generated @Oleg – akinKaplanoglu Apr 10 '15 at 13:20
1 Answers
0
Well, If you already created mongo DB. you could use java classes generator for json. All documents in mongodb are represented in json. Look at the answers for this question Generate Java class from JSON?
-
But what i want to ask is different from this answer. I transffered a table from mysql to mongodb. I want to create mapped class to this collection. Is there a way for this operation ? @Oleg – akinKaplanoglu May 01 '15 at 17:35