users@glassfish.java.net

Re: MS SQL Server 2000 for JDBC with NetBeans IDE 5.5 and Java EE 5

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 May 2007 12:31:14 PDT

Did you create your entities from tables in another database?

If you can't access the tables either from the application of while caturing the schema, something is wrong with your driver settings. We tested Java Persistence with MSSQL 2005 as it's the latest version.

Please also note that the generated code has a bug that has been fixed in the later NB builds:
public void destroy(Users users) {
  em.merge(users);
  em.remove(users);
}

should be
public void destroy(Users users) {
  em.remove(em.merge(users));
}

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=215878