Hi everyone ,
I have kind of problem ,I have a class called Message :
Code:
public class Message implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@OneToMany(cascade=CascadeType.ALL)
private Collection<Message> replies;
@Lob
private Address address;
@Lob
private MimeMessage mimeMessage;
private String fromContact;
private String replyToContact;
...
}
the problem of this is the MimeMessage class (javax.mail.internet.MimeMessage) ,I'm trying to store it in a field but now I see the class has no Serializable interface implemented in it.
Also the class has a way of writing it self "serialize" by
MimeMessage.writeTo(java.io.OutputStream view java.io.OutputStream download java.io.OutputStream.java out)
but this tricky , how can I make my mimeMessage object load normaly ?
best regards ,
nnaass
-------------------------------------------------------------------------------
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelpHibernate version: hibernate-3.2.0.cr2
Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:MySQL 5
The generated SQL (show_sql=true):Debug level Hibernate log excerpt:Code: