Hi Torben, hi Lincon,<br><br>I also think that the entity plugin is a good place because to perform crud operation we basically only need the entity (ok you can generate the service later, its just a metter to inform the entity to the service plugin but i would preffer generate all at once), the only problem i see in the Torben's approach is that you're forcing the use of JPA + EJB, for example i preffer to use hibernate + statefull EJB to perfform the crud opp, sometimes plain jdbc. <br>
<br>To overcome this we could provide some parametrized service templates which ${entity}Servive would extend, something like: <br><br>import org.jboss.forge.scaffold.service.${serviceTemplate}<br><br> public class ${entity}Servive extends org.jboss.forge.scaffold.service.${serviceTemplate}<${entity}> <br>
<br>where serviceTemplate can be a stateless(ful) ebj or Spring template with crud operations based on entityManager or hibernate session. <br><br>so when the user is generating the entity a list of service templates is prompted.<br>
<br>Just an idea, maybe it helps.<br><br><br><div class="gmail_quote">2011/11/13 Lincoln Baxter <span dir="ltr"><<a href="mailto:lincoln@ocpsoft.com">lincoln@ocpsoft.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Torben,<br><br>Our trip fron Stuttgart was great :) lots of speed.<br><br>That's fantastic! Another win over Archetypes ;) I will take a look at your code. We could definitely figure out where to put this. Just so I know what you are thinking, why do you think the entity-plugin is the right place?<br>
<br>Copying forge-dev,<br>~Lincoln<br><br><div class="gmail_quote">On Fri, Nov 11, 2011 at 1:28 PM, Torben Jaeger <span dir="ltr"><<a href="mailto:torben@jit-central.com" target="_blank">torben@jit-central.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Lincoln,<br>
<br>
how was your trip to Munich? Devoxx next?<br>
<br>
I've made some first steps with forge plugins. I've convinced my team to use forge for code generation and my colleague told me that he wants to use forge instead of the already self-written, existing maven archetypes! Mission accomplished ;)<br>
<br>
If u have time maybe u can have a look at <a href="https://github.com/jicken/entity-service-forge-plugin" target="_blank">https://github.com/jicken/entity-service-forge-plugin</a><br>
Maybe this could be done using the entity plugin with an additional option: --create-service-facade.<br>
<br>
I was wondering why it doesn't already exist ...<br>
<br>
Say hi to Dan and ALR ... if u're still traveling together.<br>
<br>
Cheers,<br>
<br>
Torben<br>
<br>
<br>
Torben Jäger<br>
Geschäftsführer<br>
<br>
JIT Consulting GmbH<br>
Obere Schlossgartenstr. 10<br>
D-74196 Neuenstadt a. Kocher<br>
<br>
Handelsregister Amtsgericht Heilbronn, HRB 8567<br>
Geschäftsführer Torben Jäger<br>
Ust-IdNr. DE234692437<br>
<br>
Tel. <a href="tel:%2B49%20-%20%280%29%20152%203357%209096" value="+4915233579096" target="_blank">+49 - (0) 152 3357 9096</a><br>
Fax <a href="tel:%2B49%20-%20%280%29%2071%2039%2045%2046%2040" value="+497139454640" target="_blank">+49 - (0) 71 39 45 46 40</a><br>
<br>
mailto:<a href="mailto:torben.jaeger@jit-consulting.eu" target="_blank">torben.jaeger@jit-consulting.eu</a><br>
<a href="http://www.jit-consulting.eu" target="_blank">http://www.jit-consulting.eu</a><br>
<br>
public key available via keyserver hkp://<a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a><br>
<br>
"it's jit, not shit."<br>
<br>
<br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br><a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
"Keep it Simple"<br>
</font></span><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>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.advancedit.com.br/" target="_blank"><span style="color:black;text-decoration:none"></span></a><span></span><span><span style="color:rgb(192, 192, 192)">Att, </span><br style="color:rgb(192, 192, 192)">
<br style="color:rgb(192, 192, 192)"><span style="color:rgb(192, 192, 192)">Rafael M. Pestano</span><br style="color:rgb(192, 192, 192)"><br style="color:rgb(192, 192, 192)"><span style="color:rgb(192, 192, 192)">Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Graduando em Ciência da Computação UFRGS</span></span><div><span><span style="color:rgb(192, 192, 192)">@realpestano</span></span></div><br>