This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cmr fields jboss-3.2.6

 
Antonio Goodman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!

I need your help !

Early i used jboss-3.0.8 - ms sql 2000 and all works fine!!!
but when i try to update application server to 3.2.6, i have some problem with CMR fields:
everyWhere i used cmr fields i recieved the error:

2005-01-27 00:11:59,677 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.BookLoan] Executing SQL: SELECT Kod, Name, enumLoanType FROM Loan WHERE (Id=?)
2005-01-27 00:11:59,747 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String ru.ifirst.holding.core.entity.book.BookLoan.getName(), causedBy:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid column name 'enumLoanType'.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
...


in the debug source select use 3 field, but one of them (enumLoanType) is relation...
why did it happen?

thanks for help!!!
 
Antonio Goodman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people!!!

i fixed my bug, so if y'll meet it too...listen

i create jboss CMP beans from JBUILDER9 and
when i designed relation many to one y must do : from One to Many (but at first i did it vice versa from many to one)

and now all works fine 8)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic