How can we dynamically assign a document value in Spring using annotation?
<p>I need to implement a generic methodology for different projects.
Code is:</p>

<pre><code>@Document(collection="OT_analyticsTable")
public class AnalyticsTableModel {

    private long newUsers = -1;
    private long returningUsers = -1;

    public AnalyticsTableModel() {}
}
</code></pre>

<p>Here I want the document value to be decided at runtime.</p>