Hi,
Can any one tell what is the difference b/n following two:

@SessionAttributes(types =Invoice.class)
@SessionAttributes("invoice")

I have following form definition.
<form:form modelAttribute="invoice" commandName="invoice" enctype="multipart/form-data">

by doing @SessionAttributes("invoice") I am getting error at the time when new Invoice is created .
and by doing @SessionAttributes(types =Invoice.class) I am getting error at the time of invoice update. at update error is:
ERROR [AbstractFlushingEventListener] Could not synchronize database state with session