[JBoss-user] [Persistence & CMP/JBoss] - Re: autokey generation (3.2.5 + hypersonic)

2005-05-18 Thread gioele
"qwidjibo" wrote : Your example seems to have just added to the jbosscmp-jdbc.xml file, does this work? If so, I'd appreciate it if you could post a copy of the working xml files. | Yes, that's almost all I've to do to get auto pk generation. I used these two xdoclet tags to the class comme

[JBoss-user] [Beginners Corner] - Re: autogenerated pk with hypersonic

2005-05-14 Thread gioele
The problem was that jbosscmp-jdbc.xml was not included in the correct jar file. Now the problem seems solved. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877750#3877750 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-user] [Persistence & CMP/JBoss] - Re: autokey generation (3.2.5 + hypersonic)

2005-05-14 Thread gioele
The problem was that jbosscmp-jdbc.xml was not included in the correct jar file. Now the problem seems solved. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877749#3877749 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-user] [Beginners Corner] - Re: autogenerated pk with hypersonic

2005-05-02 Thread gioele
I created the table myself (a quick hack, I need jboss to do it) with | CREATE TABLE STUDENTGROUP ( | id INTEGER NOT NULL IDENTITY, | password VARCHAR(256), | article VARCHAR(256) | ) now, during the creation of a new StudentGroup, JBoss complains with javax.ejb.CreateException: P

[JBoss-user] [Persistence & CMP/JBoss] - Re: autokey generation (3.2.5 + hypersonic)

2005-05-02 Thread gioele
Now my ejbCreate end with return null, but the problems are still there... Can someone post examples of working setups? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876180#3876180 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mod

[JBoss-user] [Beginners Corner] - autogenerated pk with hypersonic

2005-05-02 Thread gioele
I'd like to have an autogenerated pk but jboss 3.2.5 refuses to create this EJB. This is the EJB I created (I kept only the interesting xdoclet tags): | /** | * @ejb.bean name="StudentGroup" | * local-jndi-name="ejb/StudentGroup" | * type="CMP" | * cmp

[JBoss-user] [Persistence & CMP/JBoss] - autokey generation (3.2.5 + hypersonic)

2005-05-01 Thread gioele
I can't get hypersonic to generate primary keys for me in an automated way. This is what I have in jbosscmp-jdbc.xml | StudentGroup | | | id | | | | | password | | | | in ejb-jar.xml (some fields skipped) | StudentGroup | Con

[JBoss-user] [Persistence & CMP/JBoss] - XDoclet tags for CMR foreign key

2005-02-15 Thread gioele
What is the correc XDoclet way to specify this two tables in two Entity beans? CREATE TABLE Family ( id INTEGER, data VARCHAR, PRIMARY KEY (id) ) CREATE TABLE Person ( id INTEGER, name VARCHAR, family INTEGER, PRIMARY KEY (id), FOREIGN KEY (family) Family (id) ) The first one is

[JBoss-user] [Persistence & CMP/JBoss] - Re: How to connect to the running DB?

2005-02-15 Thread gioele
"gioele" wrote : how can I connect and inspect the default DB? I found that I should use the "standalone" driver and connect to the name of the DB on the filesystem without .data (jboss-3.2.5/server/default/data/hypersonic/localDB). View the original post : http://www.

[JBoss-user] [Persistence & CMP/JBoss] - How to connect to the running DB?

2005-02-15 Thread gioele
I use JBoss 3.2.5, with the default "defaul" server conf I have a servlet that creates some entity EJB objects. The objects are created and stored in the DB (I can retrieve them after a jboss shutdown/restart cycle), and so are the Tables (02:12:20,958 INFO [Article] Table 'ARTICLE' already exi