|
|
Re: @CascadeOnDelete and DDL generation on PostgreSQL [message #880245 is a reply to message #880189] |
Fri, 01 June 2012 17:42 |
Paul Kofon Messages: 7 Registered: July 2010 |
Junior Member |
|
|
Hi Chris,
I actually have logging set to FINE and here's part of the log:
__________________________________________________________________________________
[EL Info]: 2012-06-01 18:26:07.375--ServerSession(27401907)--Thread(Thread[main,5,main])--EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
[EL Config]: 2012-06-01 18:26:07.406--ServerSession(27401907)--Connection(1528901)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
platform=>PostgreSQLPlatform
user name=> "postgres"
datasource URL=> "jdbc:postgresql://localhost:5432/jpa-quickstart"
))
[EL Config]: 2012-06-01 18:26:07.906--ServerSession(27401907)--Connection(29437671)--Thread(Thread[main,5,main])--Connected: jdbc:postgresql://localhost:5432/jpa-quickstart
User: postgres
Database: PostgreSQL Version: 9.0.3
Driver: PostgreSQL Native Driver Version: PostgreSQL 9.0 JDBC4 (build 801)
__________________________________________________________________________________
Yes, I intend to depend on JPA's cascade remove to delete the referenced object(s). However, I want the dependent rows to be removed from the database when the parent object is removed/deleted - that's why I need ON DELETE CASCADE.
Paul.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04274 seconds