Detaching managed entity from entitymanager.

Posted on Leave a commentPosted in Uncategorized

This code will detach a entity from hibernate Entitymanger making it thus unmanaged entity. // Prepare workbook object to be used for cloning. Session session = (Session) entityManager.getDelegate(); session.evict(workbook); // same as detached workbook.setId(null);// Prepare workbook object to be used for cloning. Session session = (Session) entityManager.getDelegate(); session.evict(workbook); // same as detached workbook.setId(null);

Ant BuildException Cannot run program “..\src\protoc”

Posted on 4 CommentsPosted in Uncategorized

Error that I am getting when trying to run mvn test on google protobuf library. [INFO] Executing tasks [INFO] ———————————————————————— [ERROR] BUILD ERROR [INFO] ———————————————————————— [INFO] An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "..\src\protoc": CreateProcess error=2, The system c annot find the file specified   [INFO] ———————————————————————— [INFO] For more information, […]