I am using Java, Mongodb and Morphia. I am trying to store IPv6 addresses to mongodb. In my java code I was able to use BigInteger datatype to assign and store it in mongodb but I am getting morphia mapping exceptions when I try to retrieve them. I have done research and found out that BigInteger is not supported. Some links I was referring to were
I have a collection which should store ranges of Ipv6 address. So a "range" has "from" IPv6 address and a "to" IPv6 address. I should be able to query for a IPv6 address which falls in a range. Any suggestions on implementing this thing.
Aucun commentaire:
Enregistrer un commentaire