September 2010

Detaching managed entity from entitymanager.

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”

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, …

Ant BuildException Cannot run program “..\src\protoc” Read More »

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

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, …

Ant BuildException Cannot run program “..\src\protoc” Read More »