Java tutorial
/******************************************************************************* * Copyright (c) 2014 OSSMETER Partners. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Yannis Korkontzelos - Implementation. *******************************************************************************/ package org.ossmeter.metricprovider.historic.bugs.severityresponsetime.model; import java.util.List; import com.googlecode.pongo.runtime.Pongo; import com.googlecode.pongo.runtime.PongoList; import com.mongodb.BasicDBList; public class BugsSeverityResponseTimeHistoricMetric extends Pongo { protected List<SeverityLevel> severityLevels = null; public BugsSeverityResponseTimeHistoricMetric() { super(); dbObject.put("severityLevels", new BasicDBList()); } public List<SeverityLevel> getSeverityLevels() { if (severityLevels == null) { severityLevels = new PongoList<SeverityLevel>(this, "severityLevels", true); } return severityLevels; } }