-
1. Re: Seam Generate Entities
nsakiya Feb 26, 2008 12:43 PM (in response to nsakiya)Well, is this a common problem everybody knows how to fix it or am I the only one here? Is there any other forums or web sites I might get more response on this issue? Any words on this would be really appreciated. Thanks!
-
2. Re: Seam Generate Entities
baz Feb 27, 2008 3:09 AM (in response to nsakiya)Hello,
do i understand it correctly, 'Seam Generate Entities' does work for your databases, except for oracle?
We have used it for generating entities out of our Oracle Express database.
And we have it successfully used against Oracle 9.
It was not an easy task for us to setup the database connection in a fully functinal way. But we succeded.
In what i can remember, we have first tried to setup the oracle connection so that the 'hibernate' perspective does work in eclipse. In this perspective you get helpful information if something goes wrong.
Ciao,
Carsten -
3. Re: Seam Generate Entities
maxandersen Mar 4, 2008 8:58 AM (in response to nsakiya)Hi guys,
The trick with oracle is to remember to set hibernate.default_schema and maybe hibernate.default_catalog to limit which schemas we will read to the one you are interested in.
We should have a better ui for selecting tables...right now we only have that if you use the Hibenrate tools code generation ui directly and create a reveng.xml file. -
4. Re: Seam Generate Entities
maxandersen Apr 12, 2008 3:19 AM (in response to nsakiya)2 problems there:
1) oracle does not have catalogs so don't set it.
2) oracle is casesensitive when it comes to querying for metadata hence default_schema should probably be RA and not ra -
5. Re: Seam Generate Entities
maxandersen Apr 14, 2008 8:51 AM (in response to nsakiya)mkay....really weird then. I don't see any freezes here....how big is the schema ?
-
6. Re: Seam Generate Entities
maxandersen Apr 14, 2008 9:06 AM (in response to nsakiya):) the world is a better place again.
-
7. Re: Seam Generate Entities
rogerwbmd May 15, 2008 3:48 PM (in response to nsakiya)I am newbie to jboss and I was struggle on the same issue yesterday. Somehow I found in the forum that to add hibernate.default_schema=<schema name> line in the hibernate-console.properties will fix the problem. I tried and it worked.
Now, I have another question. I try to use "New -> Seam Entity." The java code is generated with default attributes (id, version, and name) are created and the table is also created in DB beautifully. However, when I like to modify or add attributes (like change name to first name,) I stuck. I don't know how to make the code change to update the table in DB. Or, I just have manully alter the table accordingly?
Thanks
Roger -
8. Re: Seam Generate Entities
rogerwbmd May 15, 2008 6:11 PM (in response to nsakiya)Do you mean this line: ?
Do you know when the DB update happens? Right after I save my change in the entity class, e.g. Person.java?
Thanks
Roger -
9. Re: Seam Generate Entities
rogerwbmd May 16, 2008 10:21 AM (in response to nsakiya)It works perfectly. Thanks!!!