"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
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
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
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
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
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
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
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
"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.
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
10 matches
Mail list logo