• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Custom Finder with EJB 2.0

Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
We are using WS v5.1.1 and EJB 2.0 .In our project we have to use db-tables which are present in the same database but doesn't have the corresponding entity beans.If I write a EJBQL finder query for accessing that table(ProductInfo)

Select object(o) from ShowRoom o where o.pid in(select p.id from ProductInfo p where p.name='abc')

I get the following error --abstract schema ProductInfo not defined.
Productinfo has schema mapping with the entity bean in a different ear file deployed as a different project.I am able to access all the entities from this ear file from my project but cann't use the tables from the other project to query .

Is there any way I can query these tables from my project without creating corresponding entities for them.

with our EJB 1.1 we had the flexibity of querying any table with or without corresponding entity using the WhereClauseFinderDescriptor .Does EJB 2.0 have any of that features in EJBQL.

Thanks in advance
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic