Package org.hibernate.test.any

Examples of org.hibernate.test.any.StringPropertyValue


  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here


  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

TOP

Related Classes of org.hibernate.test.any.StringPropertyValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.