Back to project page bike-friend.
The source code is released under:
GNU General Public License
If you think the Android project bike-friend listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lemoulinstudio.bikefriend.webapp.entity; // w w w. j ava2s . co m import org.bson.types.ObjectId; import org.springframework.data.mongodb.core.index.CompoundIndex; import org.springframework.data.mongodb.core.index.CompoundIndexes; import org.springframework.data.mongodb.core.index.Indexed; import org.springframework.data.mongodb.core.mapping.Document; /** * * @author Vincent Cantin */ @Document @CompoundIndexes({ @CompoundIndex(def = "{stationId: 1, date: 1}") }) public class StationLog { public ObjectId id; @Indexed public ObjectId stationId; @Indexed public long date; public int nbBikes; public int nbEmptySlots; public StationLog() { } public StationLog(ObjectId stationId, long date, int nbBikes, int nbEmptySlots) { this.id = new ObjectId(); this.stationId = stationId; this.date = date; this.nbBikes = nbBikes; this.nbEmptySlots = nbEmptySlots; } }