How to create field of type float in FSH script?
by Robb Greathouse
Hi,
Need to create a field of type float. But field float --named xxx doesn't work.
Any suggestions?
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
11 years, 10 months
Opinion poll: Jackson vs Errai
by Thomas Frühbeck
Hi,
during experiments extending a generated aerogear application I found that
- the current integration of JSON via Jackson is kinda creative hack
- not easily portable to recent releases of Jackson (see above)
- does not make use of annotation driven UI/ser/deserializ. processing
During my investigations on upgrade possibilities to modern Jackson I realized, that Errai is a very powerful and complete framework well worth being featured
in Forge's scaffold.
As I am not really deep into Jackson/JSON/Rest yet I would like to ask for your opinion on this.
Another question regarding use of annotations in a scaffold:
Especially regarding modern Errai/Jackson annotations are an easy means to control the UI / (De-)Serialization, e.g. when working with entities, I think it is
necessary to use persistence-based entity instantiation before deserialization, to avoid loss of data if an incomplete entity is desrialized and persisted by
merge().
Do you think it acceptable to actively insert annotations into entity code - possibly by a scaffold command like "scaffold applyAnnotations"?
In my opinion this could provide interesting best practice propagation for novices like me.
Thanks,
Thomas
11 years, 10 months
Re: [forge-dev] Can you give me an example of an ENUM class in forge?
by Lincoln Baxter
Best place to ask questions like these are over on forge-dev(a)lists.jboss.org, but since it's the new year ;)
"java new-enum-type {package} {quoted class body}"
But, if you are writing an addon, the best way to do this is using the JavaParser API, not with the Shell UI. I don't recommend calling plugins via the shell from other plugins.
~Lincoln
----- Original Message -----
From: "Robb Greathouse" <robb.greathouse(a)jboss.com>
To: "Lincoln Baxter" <lbaxter(a)redhat.com>
Sent: Thursday, December 27, 2012 8:21:11 PM
Subject: Can you give me an example of an ENUM class in forge?
Hi,
I am trying to generate a class of type enum. Mean that instead of,
public emun MediaType{
}
instead of
public class MediaType[
}
doing
entity --named doesn't work any suggestions?
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
11 years, 10 months
Happy new year 2013 !!
by Ahmed ELJABIRI
Hi everyone,
I am Ahmed EL Jabiri, a new subscriber to your mailing list.
Happy New Year 2013, and wish you to spend excellent holidays.
--
Best Regards,
---------------------
Ahmed EL JABIRI
Senior JEE Developer at Ardass Conseil
e-mail : ahmed.eljabiri(a)ardassconseil.com
GSM : +212 668 204 835
11 years, 10 months