Lembrando que com o ZK, voce pode usar a classe JPAUtil pra pegar o
EntityManager.
Voce não vão precisar pegar o EntityManagerFactory e nem usar transacation,
desde que tudo esteja configurado no zk.xml. ;-)


Abs
--
Felipe Costa
Undergraduating in Computer Science at UFRJ
Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on
JavaBlackBelt  <http://www.blackbeltfactory.com/ui#User/fcosta>



2010/7/28 Romulo Freires <[email protected]>

> vlw felipe
>
> Em 28 de julho de 2010 15:17, Felipe Costa 
> <[email protected]>escreveu:
>
> Voce vai criar o projeto em ZK normalmente.
>> Na pasta src voce vai colocar o o arquivo persistence.xml na pasta
>> META-INF e log.xml(ou algo assim).
>> Depois disso voce vai ter que configurar zk.xml pra usar o JPA. Dá uma
>> olhada no projeto que tá no site, lá ta tudo configurado!
>>
>> Abs
>> --
>> Felipe Costa
>> Undergraduating in Computer Science at UFRJ
>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on
>> JavaBlackBelt  <http://www.blackbeltfactory.com/ui#User/fcosta>
>>
>>
>>
>> 2010/7/28 Peter P. Lupo <[email protected]>
>>
>> Parte do exemplo do Felipe que tem tudo. ;-)
>>>
>>> Depois eu posso explicar como faz pra criar do zero, mas agora não dá. Tô
>>> de saída.
>>>
>>> Abraço
>>>
>>> Peter P. Lupo
>>> http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
>>>  <http://sites.google.com/site/pplupo>MPS.BR Authorized Implementation
>>> Practitioner<http://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf>-
>>>  Certified
>>> ScrumMaster <http://www.scrumalliance.org/pages/certified_scrummaster>
>>>  <http://www.scrumalliance.org/pages/certified_scrummaster>Sun Certified
>>> Java Associate <http://www.sun.com/training/certification/java/scja.xml>- 
>>> Java
>>> Black Belt <http://www.blackbeltfactory.com/ui#%21User/pplupo>
>>>  <http://www.blackbeltfactory.com/ui#%21User/pplupo>+55 (021) 81742487
>>>
>>>
>>>
>>> 2010/7/28 Romulo Freires <[email protected]>
>>>
>>> Agora eu to con dificuldade em ter um projeto zk e que também tenha os
>>>> arquivos do jpa.
>>>>
>>>> O eclipse dar a opção de criar um zk projeto e também JPA projeto, mas é
>>>> um ou outro.
>>>>
>>>> Quando eu levo o modelo e o controlador para o projeto zk, nada de JPA é
>>>> reconhecido.
>>>>
>>>> Alguém tem uma solução?
>>>>
>>>> :) não consegui sair nem desta parte simples ^^
>>>>
>>>> Em 28 de julho de 2010 08:47, Romulo Freires 
>>>> <[email protected]>escreveu:
>>>>
>>>> vlw
>>>>>
>>>>> Em 27 de julho de 2010 22:59, Felipe Costa <[email protected]
>>>>> > escreveu:
>>>>>
>>>>> Esse "alguma coisa" é o nome do projeto. Voce pode ver isso no arquivo
>>>>>> web.xml, no começo dele tem o nome do projeto.
>>>>>>
>>>>>>
>>>>>> Abs
>>>>>> --
>>>>>> Felipe Costa
>>>>>> Undergraduating in Computer Science at UFRJ
>>>>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on
>>>>>> JavaBlackBelt  <http://www.blackbeltfactory.com/ui#User/fcosta>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2010/7/27 Romulo Freires <[email protected]>
>>>>>>
>>>>>>> eu já configurei, agora eu quero ver um projeto(vista) na web
>>>>>>> , acho que tinha algo do tipo http://localhost:8080/algumacoisa na
>>>>>>> aula de zk
>>>>>>>
>>>>>>> to tentado ver aquele "primeiros passos" que você colocou no site.
>>>>>>> Em 27 de julho de 2010 19:05, Felipe Costa <
>>>>>>> [email protected]> escreveu:
>>>>>>>
>>>>>>> Dá uma olhada no slide, eu coloquei um passo a passo lá pra essa
>>>>>>>> parte de configuração.
>>>>>>>>
>>>>>>>> Abs
>>>>>>>> --
>>>>>>>> Felipe Costa
>>>>>>>> Undergraduating in Computer Science at UFRJ
>>>>>>>> Black belt <http://www.blackbeltfactory.com/ui#User/fcosta> on
>>>>>>>> JavaBlackBelt  <http://www.blackbeltfactory.com/ui#User/fcosta>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2010/7/27 Romulo Freires <[email protected]>
>>>>>>>>
>>>>>>>>>  Felipe
>>>>>>>>>
>>>>>>>>> Eu já instalei o tomcat 6, agora o que falta fazer?
>>>>>>>>>
>>>>>>>>> E como eu vejo um projeto na web?
>>>>>>>>>
>>>>>>>>> Estou dando run nos exemplo do site.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Comp 2 - Geral" group.
>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> [email protected]<comp2-geral%[email protected]>
>>>>>>>>> .
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Comp 2 - Geral" group.
>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> [email protected]<comp2-geral%[email protected]>
>>>>>>>> .
>>>>>>>> For more options, visit this group at
>>>>>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Comp 2 - Geral" group.
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected]<comp2-geral%[email protected]>
>>>>>>> .
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>>>>
>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Comp 2 - Geral" group.
>>>>>> To post to this group, send email to [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<comp2-geral%[email protected]>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Comp 2 - Geral" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<comp2-geral%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Comp 2 - Geral" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<comp2-geral%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Comp 2 - Geral" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<comp2-geral%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/comp2-geral?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<comp2-geral%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/comp2-geral?hl=en.

Responder a