/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Oracle - initial API and implementation from Oracle TopLink ******************************************************************************/ package org.eclipse.persistence.testing.models.aggregate; /** * This type was created in VisualAge. */ public class Bicycle extends Vehicle { public String description; /** * Bicycle constructor comment. */ public Bicycle() { super(); } public static Bicycle example1() { Bicycle example = new Bicycle(); example.setCapacity(1); example.setDescription("Shiney Red Schwinn"); example.setColour("Red"); return example; } public static Bicycle example2() { // session.executeNonSelectingCall(new org.eclipse.persistence.queries.SQLCall("INSERT INTO AGGVEHICLE VALUES (4, 2, 'Blue', 1, 'Ten speed', NULL, NULL)")); Bicycle example = new Bicycle(); example.setCapacity(1); example.setDescription("Mountain Bike"); example.setColour("Green"); return example; } public static Bicycle example3() { Bicycle example = new Bicycle(); example.setCapacity(1); example.setDescription("Ten speed"); example.setColour("Blue"); return example; } /** * This method was created in VisualAge. * @return java.lang.String */ public String getDescription() { return description; } /** * This method was created in VisualAge. * @param newValue java.lang.String */ public void setDescription(String newValue) { this.description = newValue; } }