Vote count:
0
well, the title is very self-explainatory (?). I'm using NetBeans 7.3 with glassfish 3 and 4 (tried both, with JAVA EE 6 and 7 respectively), and I have phpMyAdmin as DBMS. The thing is, I created my DB with this script: http://ift.tt/1pGH72e then created an Enterprise project, and a Web project (then added the enterprise into the web one). Then, imported Entities from Database and the script generated doesn't show any @JoinColumn annotation. I mean, it just generates String, int, Date and long int data types. I want it to generate Objects on my DB as atributes, but it doesn't work.
I sent my db to another person, he imported it and it worked. What am I doing wrong? I tried this with NetBeans 8 too and didn't work. If you try the code, you will see that Cliente has a Collection and stuff like that, but in my script it has just something like String IdGiro.
Help! u_u.
Aucun commentaire:
Enregistrer un commentaire