Re: [JBoss-user] long table names
For cmp2 this can be set somewhere, I don't remember exactly where. Try the type mapping stuff in standardjbosscmp-jdbc.xml david jencks On 2002.08.14 12:48:10 -0400 Pavel Kolesnikov wrote: > Hello, > > it seems that JBoss shortens table names longer than 31 characters. > Is there any way how to turn this feature off? > > Thanks > > Pavel > > > > > > --- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] long table names
This is specific to each JDBC driver you use. When you deploy an application in JBoss, JBossCMP gets a Connection to the DataSource the entity was deployed on and calls Connection.getMetaData().getMaxTableNameLength() to determine the maximum table name length. If its too short, it mangles it to fit. Reference org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName() for more details. Michael > -Original Message- > From: Pavel Kolesnikov [mailto:[EMAIL PROTECTED]] > > Hello, > > it seems that JBoss shortens table names longer than 31 characters. > Is there any way how to turn this feature off? > > Thanks > > Pavel --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] long table names
i think this is the lowest common denominator, oracle for example do 31 not more (i personally like 42). but the data should be stored in the table, not in the metadata dictionary ;-) a workaroud would be to establish an ejb facade for the db naming :) bax - Original Message - From: "Pavel Kolesnikov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 6:48 PM Subject: [JBoss-user] long table names > Hello, > > it seems that JBoss shortens table names longer than 31 characters. > Is there any way how to turn this feature off? > > Thanks > > Pavel > > > > > > --- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user