Skip to content

Commit

Permalink
Documented the types that MongoListField supports.
Browse files Browse the repository at this point in the history
  • Loading branch information
eltimn committed May 20, 2014
1 parent 4312301 commit f5bc294
Showing 1 changed file with 11 additions and 2 deletions.
Expand Up @@ -36,8 +36,17 @@ import com.mongodb._
import org.bson.types.ObjectId

/**
* List field. Compatible with most object types,
* including Pattern, ObjectId, Date, and UUID.
* List field.
*
* Supported types:
* primitives - String, Int, Long, Double, Float, Byte, BigInt,
* Boolean (and their Java equivalents)
* date types - java.util.Date, Calendar, org.joda.time.DateTime
* mongo types - ObjectId, Pattern, UUID
*
* If you need to support other types, you will need to override the
* asDBObject and setFromDBObject functions accordingly. And the
* asJValue and setFromJValue functions if you will be using them.
*
* Note: setting optional_? = false will result in incorrect equals behavior when using setFromJValue
*/
Expand Down

0 comments on commit f5bc294

Please sign in to comment.