Да,именно.Хотя запись добавилась. Если вместо TransactionalGraph использовать просто Graph и не комитить,то тест работает,но в Бд ничего не добавляется
среда, 20 августа 2014 г., 15:41:15 UTC+4 пользователь Andrey Lomakin написал: > > Егор , > Вы имеете ввиду что он замерз на коммите ? > On Aug 20, 2014 2:19 PM, "Егор Левша" <[email protected] <javascript:>> > wrote: > >> First,sorry for my English,its not my native language. >> >> I wrote this simple class . >> @Service >> public class OrientService { >> >> >> TransactionalGraph graph; >> final Logger logger = LoggerFactory.getLogger(this.getClass()); >> >> >> public OrientService(){ >> graph = new OrientGraph("remote:192.168.1.39:2424/example", >> "orientdb", "12345678"); >> } >> >> >> public void addVertex(){ >> Vertex v = graph.addVertex("class:Person"); >> v.setProperty("name", "Finn"); >> graph.commit(); >> } >> } >> >> >> Then wrote test >> @Test >> public class TestOrient { >> public void testConnect(){ >> OrientService or = new OrientService(); >> or.addVertex(); >> } >> } >> >> When i ran this test,its looped on graph.commit() .Btw, vertex was added >> into db(i checked in studio). >> What i did wrong ? >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
