This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Problem with EJB Mapping  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have a problem when we want to add a new many to many relationshipt to a table (or EJB). I think we are missing one step in the precedure, this is what we are doing:
- create the table in the xe.dbm file with all the fields and then we add the two FK that conform the PK.
- Then we generate a new EJB with all the CMP fields and an id as a key for the EJB
- Add the relationships with the two EJBs.
- Once they are created, we select those two FK, and mark them as keys.
- remove the id field.
- then we make the mapping on the Map.mapxmi file

But then when we want to generate the RMI code with the "prepare for deployment" we get a "Error generating Create query from bean Mensaje (Abstract schema name=Mensaje)" the bean Mensaje is Ok, because we could make the prepare for deployment before adding this EJB. And the error in the Problems view is: An error has occured running EJBQL Validation.Check the error log.

Can anyone tell me how to correct this?
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!