/******************************************************************************* | |
* Copyright (c) 1998, 2008 Oracle. 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: | |
* dclarke - Dynamic Persistence INCUBATION - Enhancement 200045 | |
* http://wiki.eclipse.org/EclipseLink/Development/JPA/Dynamic | |
* | |
* This code is being developed under INCUBATION and is not currently included | |
* in the automated EclipseLink build. The API in this code may change, or | |
* may never be included in the product. Please provide feedback through mailing | |
* lists or the bug database. | |
******************************************************************************/ | |
package org.eclipse.persistence.testing.tests.dynamic.orm.comics; | |
import org.eclipse.persistence.sessions.Session; | |
import org.junit.Test; | |
public class QueryTests { | |
@Test | |
public void readAll() { | |
Session session = SessionHelper.getComicsSession().acquireClientSession(); | |
session.readAllObjects(session.getDescriptorForAlias("Issue").getJavaClass()); | |
session.readAllObjects(session.getDescriptorForAlias("Publisher").getJavaClass()); | |
session.readAllObjects(session.getDescriptorForAlias("Title").getJavaClass()); | |
session.release(); | |
} | |
} |