FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NB6.5 New JSF Pages from Entity Classes and Attempt to use a Persistence Unit in a different Project add in Properties Library

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
rdblaha1
Posted via mailing list.





PostPosted: Wed Jan 07, 2009 8:58 pm    Post subject: NB6.5 New JSF Pages from Entity Classes and Attempt to use a Persistence Unit in a different Project add in Properties Library Reply with quote

The problem I am up against is I have an existing Project which holds my
entities and Persistence Unit. I am creating a JSF Project loosely based on
the tutorial "
http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html#02 Generating a
JavaServerFaces CRUD Application from a Database ". The difference from the
tutorial is tha I already have a project with the required entities and
persistence unit. As I step through to create the "New JSF Pages from
Entity Classes" I find what I believe is probably a bug. All my entities
from my other project in the library are displayed, but the error message is
displayed, "The project does not have a persistence unit. You need a
persistence unit to persist entity classes." Now how can it show my
entities from my existing persistence unit, but not 'find' my existing
persistence unit?

I have searched this forum and found references to situations somewhat, but
not quite exactly like this. The results were definitely different in that
they all referred to NB5.5 and NB6.1. If I missed a thread that addresses
this, please point me to that thread.


--
View this message in context: http://www.nabble.com/NB6.5--New-JSF-Pages-from-Entity-Classes--and-Attempt-to-use-a-Persistence-Unit-in-a-different-Project-add-in-Properties-Library-tp21340126p21340126.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Back to top
rdblaha1
Posted via mailing list.





PostPosted: Thu Jan 15, 2009 3:32 pm    Post subject: NB6.5 New JSF Pages from Entity Classes and Attempt to use a Persistence Unit in a different Project add in Properties Library Reply with quote

Quote:
Now how can it show my entities from my existing persistence unit, but
not 'find' my existing persistence unit?


I rephrase the question to hopefully convey my main concerns.

1) Is it a bug that my entities from my project with the entities and
persistence unit are displayed in the situation previously described while
the persistence unit is not found?

2) Whether it is a bug or not, how can I use a persistence unit from another
project with its entities?

My purpose is so I can use one entity/persistence unit project in other
projects so I don't have to rebuild entities and persistence units everytime
I need to access the exact same tables.

Thank you.


--
View this message in context: http://www.nabble.com/NB6.5--New-JSF-Pages-from-Entity-Classes--and-Attempt-to-use-a-Persistence-Unit-in-a-different-Project-add-in-Properties-Library-tp21340126p21479993.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB