[
https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin...
]
George Gastaldi commented on FORGE-2624:
----------------------------------------
I am not sure if removing Serializable from the entity class is the best choice. According
to the JPA Spec:
{quote}
"If an entity instance is to be passed by value as a detached object (e.g., through a
remote interface), the entity class must implement the Serializable interface."
"JSR 220: Enterprise JavaBeansTM,Version 3.0 Java Persistence API Version 3.0, Final
Release May 2, 2006"
{quote}
The alternatives we have are: Make Forge generate the {{serialVersionUID}} (it can be set
as 1L as it won´t be an issue anyway) OR the
{{@SuppressWarnings("serialization")}} when creating the new entity. I
personally lean towards the first option, but I am open for ideas.
Last but not least, the {{java-add-field}} and {{java-add-annotation}} commands (which in
theory could be used to add the field OR the annotation) do not support passing an initial
value, so we need to improve those too.
Warnings in JBDS after generating forge-from-scratch quickstart
---------------------------------------------------------------
Key: FORGE-2624
URL:
https://issues.jboss.org/browse/FORGE-2624
Project: Forge
Issue Type: Bug
Components: Java EE
Reporter: Sande Gilda
Priority: Minor
After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
* The serializable class Address does not declare a static final serialVersionUID field
of type long
* The serializable class Customer does not declare a static final serialVersionUID field
of type long
* The serializable class Item does not declare a static final serialVersionUID field of
type long
* The serializable class ProductOrder does not declare a static final serialVersionUID
field of type long
* The serializable class Profile does not declare a static final serialVersionUID field
of type long
* The serializable class ZipCode does not declare a static final serialVersionUID field
of type long
* location references to "/faces/error.xhtml" that does not exist in web
content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)