[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-28 Thread Smilidon
mmm, maybe(i'm not an expert ;)  field-nameFDesde/field-name != o.fDesde = ?2

case-sensitiv?? 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853032#3853032

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853032


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-28 Thread ivanlc
Hi all again,

finally got it. The query doesnt compile because the database fields

f_desde and f_hasta 

have been mapped to
FDesde and FHasta in the entity bean but the finder refers to them 
as
o.fDesde and o.fHasta

The code is generated by Middlegen 2b and I just cut and paste
from the single column finder to create this new finder.
Hence watch out for columns that contain an underscore when generating
entities from tables using this fantastic tool.

Ivan

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853033#3853033

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853033


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88alloc_id065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-27 Thread ivanlc
Hi all,

error is due to a compilation of EJB-QL sentence.
There must be a good reason why it doesn't compile
but I can't see it (yet).


2004-10-27 14:23:21,484 ERROR [org.jboss.ejb.EntityContainer] Starting failed 
jboss.j2ee:jndiName=pdmV1-I1.EDestinLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT 
OBJECT(o) FROM ET01 o WHERE o.programa = ?1 AND o.fDesde = ?2 AND o.fHasta = ?3 AND 
o.tipoHab = ?4 AND o.regAlimento = ?5'; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.UnknownPathException: Unknown terminal field: at line 
1, column 63.  Encountered: fDesde after: o.)
   at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:52)
   at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:60)
 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852950#3852950

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852950


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-25 Thread ivanlc
Hi,

here is the ejb-jar.xml (with additional finder in ET01 making EZonas fail)  and 
further down
ejb-jar.xml (without additional finder in ET01).


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN 
http://java.sun.com/dtd/ejb-jar_2_0.dtd;

ejb-jar

   ![CDATA[No Description.]]
   display-nameGenerated by XDoclet/display-name

   enterprise-beans

  !-- Session Beans --
  
 ![CDATA[]]
 display-nameLoginManager Session Bean/display-name

 ejb-nameLoginManager/ejb-name

 com.lctelsystems.pdm.be.ejb.interfaces.LoginManagerHome
 com.lctelsystems.pdm.be.ejb.interfaces.LoginManager
 ejb-classcom.lctelsystems.pdm.be.ejb.session.LoginManagerSession/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type

  

  
 ![CDATA[Sequence generator]]

 ejb-nameSequenceSession/ejb-name

 
local-homecom.lctelsystems.pdm.be.ejb.interfaces.SequenceSessionLocalHome/local-home
 com.lctelsystems.pdm.be.ejb.interfaces.SequenceSessionLocal
 
ejb-classcom.lctelsystems.pdm.be.ejb.entity.SequenceSessionSession/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type

 env-entry
env-entry-nameblockSize/env-entry-name
env-entry-typejava.lang.Integer/env-entry-type
env-entry-value![CDATA[5]]/env-entry-value
 /env-entry
 env-entry
env-entry-nameretryCount/env-entry-name
env-entry-typejava.lang.Integer/env-entry-type
env-entry-value![CDATA[2]]/env-entry-value
 /env-entry

 ejb-local-ref 
ejb-ref-nameejb/Sequence/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type

local-homecom.lctelsystems.pdm.be.ejb.interfaces.SequenceLocalHome/local-home
com.lctelsystems.pdm.be.ejb.interfaces.SequenceLocal
ejb-linkSequence/ejb-link
 /ejb-local-ref

  

  
 ![CDATA[]]
 display-nameAreaManager Session Bean/display-name

 ejb-nameAreaManager/ejb-name

 com.lctelsystems.pdm.be.ejb.interfaces.AreaManagerHome
 com.lctelsystems.pdm.be.ejb.interfaces.AreaManager
 ejb-classcom.lctelsystems.pdm.be.ejb.session.AreaManagerSession/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type

  

  
 ![CDATA[]]
 display-nameHotelSearch Session Bean/display-name

 ejb-nameHotelSearchManager/ejb-name

 com.lctelsystems.pdm.be.ejb.interfaces.HotelSearchManagerHome
 com.lctelsystems.pdm.be.ejb.interfaces.HotelSearchManager
 
ejb-classcom.lctelsystems.pdm.be.ejb.session.HotelSearchManagerSession/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type

  

  
 ![CDATA[]]
 display-namePriceManager Session Bean/display-name

 ejb-namePriceManager/ejb-name

 com.lctelsystems.pdm.be.ejb.interfaces.PriceManagerHome
 com.lctelsystems.pdm.be.ejb.interfaces.PriceManager
 ejb-classcom.lctelsystems.pdm.be.ejb.session.PriceManagerSession/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type

  

 !--
   To add session beans that you have deployment descriptor info for, add
   a file to your XDoclet merge directory called session-beans.xml that contains
   the  markup for those beans.
 --

  !-- Entity Beans --
  
 ![CDATA[This class is part of pdmV1, and it is a CMP EJB accessing the 
e_hotel table.]]

 ejb-nameEHotel/ejb-name

 
local-homecom.lctelsystems.pdm.be.ejb.interfaces.EHotelLocalHome/local-home
 com.lctelsystems.pdm.be.ejb.interfaces.EHotelLocal

 ejb-classcom.lctelsystems.pdm.be.ejb.entity.EHotelCMP/ejb-class
 persistence-typeContainer/persistence-type
 prim-key-classjava.lang.Integer/prim-key-class
 False
 cmp-version2.x/cmp-version
 abstract-schema-nameEHotel/abstract-schema-name
 cmp-field 
![CDATA[Returns the id]]
field-nameid/field-name
 /cmp-field
 cmp-field 
![CDATA[Returns the pais]]
field-namepais/field-name
 /cmp-field
 cmp-field 
![CDATA[Returns the zona]]
field-namezona/field-name
 /cmp-field
 cmp-field 
![CDATA[Returns the destino]]
field-namedestino/field-name
 /cmp-field
 cmp-field 
![CDATA[Returns the hotel]]
field-namehotel/field-name
 /cmp-field
 cmp-field 
![CDATA[Returns the establecim]]
field-nameestablecim/field-name
 /cmp-field
 cmp-field 
  

[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-25 Thread ivanlc
Hi again,

too much info in the post and the config file got truncated.
I'll send them to your mail account if that doesn't bother you.

Cheers,
Ivan

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852537#3852537

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852537


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: TransactionRolledBackException, IllegalStateException, J

2004-10-23 Thread Raist_Majere
Please provide ejb-jar.xml and other usefull config files/source classes to help you.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852437#3852437

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852437


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user