Policy failures:
Code warning - failed on resource User.java. Reason: The serializable class User does not declare a static final serialVersionUID field of type long, line 2 Override reason: serializable et autre
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
package org.yacos.core.users;
|
package org.yacos.core.users;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.io.Serializable;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
@@ -17,7 +18,7 @@ import org.yacos.core.conferences.Conference;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
public class User {
|
public class User implements Serializable{
|
||||||
/**
|
/**
|
||||||
* Unique login of the user
|
* Unique login of the user
|
||||||
* Is used to identify the user, should be unique and can't be modified
|
* Is used to identify the user, should be unique and can't be modified
|
||||||
|
|||||||
Reference in New Issue
Block a user