serialization - Entry and Serialisation -


my project in form:

class persistant :

@entity public class produit implements serializable { private static final long serialversionuid = -3352484919001942398l;  @id @generatedvalue private long id; private string module; private string produit;  //getter&&setter 

class dao

public  list<entry<integer, list<produit>>> parproduit(string cat) { ....... hashmap<integer, list<produit>> legaux = new hashmap<integer, list<produit>>(); ........ list<map.entry<integer, list<produit>>> entries = new    arraylist<entry<integer, list<produit>>>(legaux.entryset());  return entries; } 

when execute code error :

java.io.notserializableexception: java.util.hashmap$node 

java.util.hashmap.entryset<k, v> 

is not serializable.

legaux.entryset() 

probably returns set of type java.util.hashmap.entryset, may want check that.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -