-
1. Re: 3.0RC1 deploy problem with Oracle8
armint Apr 18, 2002 10:53 AM (in response to bpeeters)Bart,
Use jbosscmp-jdbc.xml to map your CMP fields and table name to their database equivalents. Also, the server log (if debug is on) will show what statement is being used to create the table. -
2. Re: 3.0RC1 deploy problem with Oracle8
bpeeters Apr 18, 2002 11:30 AM (in response to bpeeters)Yes but I don't want to make jbosscmp.xml file.
I've so many tables and CMR, with Hypersonic, the engine creates al the tables automaticly without this file, so,
I want it also for Oracle.
How can I set debug on??
Bart -
3. Re: 3.0RC1 deploy problem with Oracle8
armint Apr 18, 2002 11:48 AM (in response to bpeeters)I think debug might be turned on by default. But you can edit conf/log4j.xml to change logging priorities. If your not familiar with log4j go to http://jakarta.apache.org/log4j/docs/index.html. Not sure, but you may have to turn on trace logging which is more sensitive than debug. Uncomment the line like:
I'm not sure if you can change the rules JBoss uses to create the db object mappings. If you really don't want to use jbosscmp-jdbc.xml, you could shorten the bean names ( maybe abstract-schema-name ) and the field names of your beans. -
4. Re: 3.0RC1 deploy problem with Oracle8
dsundstrom Apr 18, 2002 1:23 PM (in response to bpeeters)I trim the table name based on the data in DatabaseMetaData. Can you post the sql executed and exactally what oracle is complaining about?
-
5. Re: 3.0RC1 deploy problem with Oracle8
bpeeters Apr 23, 2002 4:33 AM (in response to bpeeters)Where can I see the sql that JBoss create to create the tables???? Logs of Oracle?
-
6. Re: 3.0RC1 deploy problem with Oracle8
chgrimm Apr 23, 2002 5:12 AM (in response to bpeeters)from Oracle8i Error Messages:
ORA-00972 identifier is too long
Cause: The name of a schema object exceeds 30 characters. Schema objects are tables, clusters, views, indexes, synonyms, tablespaces, and usernames.
Action: Shorten the name to 30 characters or less.
____________________
check if your Bean name has more than 30 characters
i don't know hypersonic, but maybe i does not have this 30 chararacter restriction, and so it worked -
7. Re: 3.0RC1 deploy problem with Oracle8
bpeeters Apr 23, 2002 6:25 AM (in response to bpeeters)I've no Bean names with more than 30 characters.
I think that the problem is when the container generate a table name for link tables (many to many relationship)
I think he adds the 2 bean names together and then it's more than 30 characters. But how to fix it? -
8. 3837337
soeiro May 24, 2002 2:20 PM (in response to bpeeters)Hello
I have the same kind of problem and it is not so easy to solve. We have an object model that is very large. From the start we have been using object names that are complete. For exemple, we use "PersonSituation" and "PersonSituationHistory". There is a lot of code and we would like to keep the long names.
Is there any way to tell JBOSS to map an entity bean long name to some kind of internal hash code name? Or mapping?Then it could use a short "alias" to send SQL statements to that primitive and archaic database interface engine that is used by Oracle.
Thanks,
Luis JB Soeiro