I create a database in MySQL (4.0.20)
I create PERSON table
I develop the coreesponding Entity
@Entity
@Table(name = "PERSON")
public class PersonEntity implements Serializable {
...
}
I deploy the jar and test the creation :
...
entityManager.persist(personEntity);
...
It works.
But when I undeploy in EclipseIDE, the data in database are deleted.
Can some one explain me why it is deleted, and show me how to avoid this ?
thank U.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977663#3977663
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977663
Hi,
I have an application where in I have my local copies of dtd files inside an ear. The problem is whenever I try to validate my xml it gives me an error saying unrecognized dtds.
I was trying a work-around and trying to put some entries in the xmlresolver-service.xml, but could not succeed.
In case someone has encountered this problem earlier or has more idea about xmlresolver, please let me know.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977658#3977658
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977658
We note that replication occurs if you remove and then perform a putObject, but not otherwise
That is, the following pseudo-code illustrates a pattern which returns the modified data
MyObject myObject = new MyObject();
myObject.SetValue("0");
cache1_.putObject("/key/", myObject);
myObject = cache1_.getObject("/key/");
myObject.SetValue("1");
myObject2 = cache2_.getObject("/key/");
// myObject2.GetValue returns 0
cache1_.remove("/key/");
cache1_.putObject("/key/", myObject);
myObject2 = cache2_.getObject("/key/");
// myObject2.GetValue returns 1
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977657#3977657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977657