Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] using dynamic entities example code


On 07/07/2008, at 4:37 PM, Tim Hollosy wrote:

I've never done this, but from glancing at the bug report I think
you'd want to point it to the location of your classes directory (the
directory where your entity .class files are).

I'm not sure if that's just your /classes or /bin or if you need to go
down to the package level.

Hi Tim,

I think it turns out that it is looking for the persistence.xml... not 100% as still get warnings?

here is the output of my first semi-successful test
so needless to say fairly happy... 


Database changed
mysql> show tables;
+-------------------+
| Tables_in_marktwo |
+-------------------+
| DYNAMIC_EMP       | 
+-------------------+
1 row in set (0.00 sec)

mysql> select * from dynamic_emp;
+-----------+--------+--------+--------+
| EMP_ID    | F_NAME | L_NAME | SALARY |
+-----------+--------+--------+--------+
| 111222333 | Doug   | Clarke |      0 | 
+-----------+--------+--------+--------+
1 row in set (0.00 sec)

mysql> 


So far i am liking Eclipselink....


i am however getting a warning when i run this test to both create the entity and persist ?

Jul 7, 2008 9:56:32 PM org.eclipse.persistence.session.file:/Users/home/workspace/yggdrasil/on_server/marktwo/marktwo-ejb/dist/marktwo-ejb.jar-marktwo-ejbPU.transaction
WARNING: PersistenceUnitInfo marktwo-ejbPU has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored
Jul 7, 2008 9:56:32 PM org.eclipse.persistence.session.file:/Users/home/workspace/yggdrasil/on_server/marktwo/marktwo-ejb/dist/marktwo-ejb.jar-marktwo-ejbPU
INFO: EclipseLink, version: Eclipse Persistence Services - 1.0 (Build SNAPSHOT - 20080625)
Jul 7, 2008 9:56:32 PM org.eclipse.persistence.session.file:/Users/home/workspace/yggdrasil/on_server/marktwo/marktwo-ejb/dist/marktwo-ejb.jar-marktwo-ejbPU
INFO: Server: unknown
Jul 7, 2008 9:56:32 PM org.eclipse.persistence.session.file:/Users/home/workspace/yggdrasil/on_server/marktwo/marktwo-ejb/dist/marktwo-ejb.jar-marktwo-ejbPU
INFO: file:/Users/home/workspace/yggdrasil/on_server/marktwo/marktwo-ejb/dist/marktwo-ejb.jar-marktwo-ejbPU login successful

any ideas would be appreciated...

thanks,

-lachlan





Hope that helps :)

/tim

On Mon, Jul 7, 2008 at 6:41 PM, Lachlan Gregor <lachlan.gregor@xxxxxxxxx> wrote:
Hi,


I have a question regarding dynamic entities (which i think is awesome, and
helps answer an issue that has had me trolling the net for the last few
weeks, and thus led me to Eclipselink, not to mention increased performance
which i am also looking forward too).. I am just trying to run some of the
example code however running into an issue with :


// This root URL config should go away when bug 225321 is fixed
puInfo.setPersistenceUnitRootUrl(new
URL("file:/C:/Eclipse/EclipseLink/trunk/examples/org.eclipse.persistence.example.jpa.dynamic/classes/"));



I am just wondering what the url is meant to be pointing at in particular?

any help would be great,

thanks,

-lachlan


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users




--
./tch
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top