Package models

Examples of models.City.refresh()


            assertEquals(city.name, entity2.cities.get(0).name);

            // Check that modification Company has not been save
            City dbCity = City.findById(city.getId());
            // Refresh to avoid cash issue
            dbCity.refresh();
            assertEquals(city.name, dbCity.name);
            assertNotEquals("changeNameOfA", dbCity.name);
            assertEquals("Name", dbCity.name);

        } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.