Hello,
I wanted to know if it's possible to do auto type conversion beween Pojo
files and mongodb document?
for example:
class POJO{
private ObjectId id
private Long updated...
...
class Dao{
public void save(long now){
POJO pojo = new POJO()
pojo.setUpdated(now)
mongoTemplate.insert(pojo)
Now what i'm trying to accomplish is that pojo document's update field will
be of Date type for example (inside mongoDb)
Is it possible?
I'm using spring 4.0.4, spring-data-mongodb 1.5.1
Thanks!
Roy
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user [ at ] googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/b0d74e5e-92ca-49d5-81ca-46797dd56795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I wanted to know if it's possible to do auto type conversion beween Pojo
files and mongodb document?
for example:
class POJO{
private ObjectId id
private Long updated...
...
class Dao{
public void save(long now){
POJO pojo = new POJO()
pojo.setUpdated(now)
mongoTemplate.insert(pojo)
Now what i'm trying to accomplish is that pojo document's update field will
be of Date type for example (inside mongoDb)
Is it possible?
I'm using spring 4.0.4, spring-data-mongodb 1.5.1
Thanks!
Roy
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user [ at ] googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/b0d74e5e-92ca-49d5-81ca-46797dd56795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.