• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity Bean not inserted in my table ... no runtime error  RSS feed

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

I am developping an application using EJB2.1, all things are good, except the entity beans, I don't know why they are not inserted into my DB.
I'm trying to map my table "Department", with xdoclet 1.2.2 I have generate these classes :

On server Side :
DepartmentEntityEJB
DepartmentEntityEJBBean
DepartmentEntityEJBCMP

On User Side :
DepartmentEntityEJBData
DepartmentEntityEJBHome
DepartmentEntityEJBLocal
DepartmentEntityEJBLocalHome
DepartmentEntityEJBUtil
And I have added DepartmentEntityEJB interface.

I deploy, the server logs : 16:00:14,093 INFO [EjbModule] Deploying DepartmentEJB

On User side, I have :



My ejbCreate methode :


my ejb-jar.xml :


When I run, I don't have any runtime error, the server print : I a inserting a object ...
But any department object was inserted in my table.

is there any relation with transaction management ? is my abstract schema name badly configured, ....

Please, Help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!