users@glassfish.java.net

Re: Table name is taking as entity bean name not the table name.

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Tue, 06 Jan 2009 15:03:51 -0800

Can you please post your sun-cmp-mappings.xml, ejb-jar.xml, sun-ejb-jar.xml


Rajeshkanna.r wrote:
> I do have similar problem where ejbname used for querying instead of Table
> name
>
> example ACTIVEUSERSENTITYBEAN is my ejb name and my table name is ACTUSERS
>
> but at the runtime Glassfish-2 is considering ACTIVEUSERSENTITYBEAN as a
> Table name for Querying
>
> like
> insert into "ACTIVEUSERSENTITYBEAN"("ID", "DATE", "STATUS") values ( ?,
> ?, ?).
>
>
> any help is much appreciated
>
>
>
>
> glassfish-2 wrote:
>
>> Hi,
>>
>> When I deploy a CMP Bean with ejb-name and table name as different in
>> sun-cmp-mappings.xml. While executing the query for findByPrimaryKey or
>> create it is taking the ejb-name as table name not the table-name as table
>> name in query.
>>
>> Is it a configuration problem anywhere.
>> Please help me out.
>> [Message sent by forum member 'vinaykumarm' (vinaykumarm)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=324211
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>>
>
>