FileDocCategorySizeDatePackage
NativeQueryTest.javaAPI DocHibernate 3.2.5798Tue Dec 12 16:22:26 GMT 2006org.hibernate.test.jpa.ql

NativeQueryTest

public class NativeQueryTest extends org.hibernate.test.jpa.AbstractJPATest
todo: describe NativeQueryTest
author
Steve Ebersole

Fields Summary
Constructors Summary
public NativeQueryTest(String name)

		super( name );
	
Methods Summary
public static junit.framework.Testsuite()

		return new FunctionalTestClassTestSuite( NativeQueryTest.class );
	
public voidtestJpaStylePositionalParametersInNativeSql()

		Session s = openSession();
		s.beginTransaction();
		s.createSQLQuery( "select NAME from EJB3_ITEM where ITEM_ID = ?1" ).setParameter( "1", "123" ).list();
		s.getTransaction().commit();
		s.close();