• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I return empty entity bean  RSS feed

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
Im using the @PrePersist annotation to perform some action on entity bean
But there is situation that I like to return to the client bean with not data in it
Can it be done ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36441
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meir,
You need some data for the bean to have meaning. In particular, the primary key identifies the record.
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but if i like to make it somekind of place holder if its part of
entity's object hierarchy ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!