/******************************************************************************* * Copyright (c) 2011, 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: * Vikram Bhatia - initial API and implementation ******************************************************************************/ package org.eclipse.persistence.testing.models.vehicle; /** * This tests; * <ul> * <li> the query populated with wrong select list items. */ public class CarOwner implements java.io.Serializable { public Number id; public String name; public SportsCar car; public SportsCar lastCar; public CarOwner() { } public Number getId() { return id; } public void setId(Number id) { this.id = id; } public void setCar(SportsCar car) { this.car = car; } public void setLastCar(SportsCar lastCar) { this.lastCar = lastCar; } public SportsCar getCar() { return car; } public SportsCar getLastCar() { return lastCar; } public void setName(String aName) { name = aName; } public String getName() { return name; } public String toString() { return this.name; } public static CarOwner example1() { CarOwner example = new CarOwner(); example.setId(1001); example.setName("Raymen"); example.setCar(SportsCar.example1()); example.setLastCar(SportsCar.example2()); return example; } }