Package org.geomajas.layer.hibernate.nested.pojo

Examples of org.geomajas.layer.hibernate.nested.pojo.NestedFeature


  @Autowired
  SessionFactory sessionFactory;

  @Test
  public void testCreateFromPojo() throws Exception {
    NestedFeature feature = NestedFeature.getDefaultInstance1();
    Object created = layer.create(feature);
    sessionFactory.getCurrentSession().flush();
    Assert.assertNotNull(created);
    Assert.assertTrue(created instanceof NestedFeature);
    NestedFeature createdFeature = (NestedFeature) created;
    Assert.assertNotNull(createdFeature.getId());
  }
View Full Code Here

TOP

Related Classes of org.geomajas.layer.hibernate.nested.pojo.NestedFeature

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.