<div dir="ltr">Thank you all guys, I managed to generate the code using JCodeModel, is inside the JDK and it seems good.<div><br></div><div>Do you know that ??</div><div><br></div><div>About Obj-C I only need to generate the code, not to parse it.</div>
<div><br></div><div>Any other hint ?</div><div><br></div><div>Thank you.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/17 Lincoln Baxter, III <span dir="ltr"><<a href="mailto:lincolnbaxter@gmail.com" target="_blank">lincolnbaxter@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Luca,<div><br></div><div>I'm sorry, I've been meaning to answer your email for (blush) a few days now. It looks like Vineet finally beat me. I wasn't sure what to tell you about the Objective-C mapping stuff. I don't know how that would be integrated.</div>
<div><br></div><div>Do you need to parse and understand the Objective-C, or do you just want to "spit it out" ?</div><div><br></div><div>~Lincoln</div></div><div class="gmail_extra"><div><div class="h5"><br><br>
<div class="gmail_quote">
On Wed, Jul 17, 2013 at 5:30 AM, Vineet Reynolds Pereira <span dir="ltr"><<a href="mailto:vpereira@redhat.com" target="_blank">vpereira@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi Luca,<br>
<br>
You could use MetaWidget again to generate the Java entities and JAX-RS endpoints, although I think it would be better to do it with a combination of both Metawidget (to generate sections of the classes) and the Forge Java Parser API, in combination with a templating language like Freemarker. I have to admit though that I don't have an answer on generating the Objective-C portions.<br>
<br>
Vineet<br>
<div><div><br>
<br>
----- Original Message -----<br>
> From: "Luca Masini" <<a href="mailto:luca.masini@gmail.com" target="_blank">luca.masini@gmail.com</a>><br>
> To: "forge-dev List" <<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a>><br>
> Sent: Friday, July 12, 2013 7:18:16 PM<br>
> Subject: [forge-dev] Core Data Forge Plugin<br>
><br>
> Hi guys, I'm developing a thin framework with the target of allow synch<br>
> between an iOS App and a Java EE Server.<br>
><br>
> The idea is yet working, we developed a Core Data Incremental Store and a<br>
> Java EE 6 application that can answer to the Incremental Store events.<br>
><br>
> Now the next step is to generate everything staring from the Core Data Model,<br>
> designed inside XCode.<br>
><br>
> Basically, the model is simply an XML file, from which I want to generate:<br>
><br>
> 1) Objective C mapping for the Incremental Store<br>
> 2) Java Entities that map the same model<br>
> 3) JAX-RS end-point<br>
><br>
> Of course I want to develop a forge plugin and here I need your advices.<br>
><br>
> When I started developing the forge-errai-plugin last year I used the<br>
> fantastic MetaWidget framework, but now I think that is not the right tool<br>
> for the job.<br>
><br>
> So, what do you think is the best way, using forge, to make those generators<br>
> ?<br>
><br>
> Thank you.<br>
><br>
> L.<br>
><br>
> --<br>
> ****************************************<br>
> <a href="http://www.lucamasini.net" target="_blank">http://www.lucamasini.net</a><br>
> <a href="http://twitter.com/lmasini" target="_blank">http://twitter.com/lmasini</a><br>
> <a href="http://www.linkedin.com/pub/luca-masini/7/10/2b9" target="_blank">http://www.linkedin.com/pub/luca-masini/7/10/2b9</a><br>
> ****************************************<br>
><br>
</div></div>> _______________________________________________<br>
> forge-dev mailing list<br>
> <a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."
</font></span></div>
<br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>****************************************<br>
<a href="http://www.lucamasini.net">http://www.lucamasini.net</a><br><a href="http://twitter.com/lmasini">http://twitter.com/lmasini</a><br><a href="http://www.linkedin.com/pub/luca-masini/7/10/2b9">http://www.linkedin.com/pub/luca-masini/7/10/2b9</a><br>
****************************************
</div>