Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Blob and PostgreSQL

There is quite alot of functionality that can be overridden through subclassing our various database platforms.

You should be able to override buildFieldTypes() in PostgreSQLPlatform to change what DDL generation will generate.

How is writing to a LOB using OID different than writing to a bytea different in JDBC?

On 24/06/2013 9:50 AM, Andreas Joseph Krogh wrote:
På mandag 24. juni 2013 kl. 14:37:07, skrev Tom Ware <tom.ware@xxxxxxxxxx
<mailto:tom.ware@xxxxxxxxxx>>:

    Is the code attached to this bug any help?

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=337467

    If so, you can subclass PostgreSQLPlatform to make use of that code and enable
    it by specifying the name of your subclass in the persistence unit property
    "eclipselink.target-database".

It looks like that code makes EL able to read blobs, but not to write them, or
generate correct schema. Does EL offer a mechanism to override
default-implementations of built-in types, so that one can make a custom
Blob-type and have EL use it for all JPA-fields of type=Blob?
--
Andreas Joseph Krogh <andreak@xxxxxxxxxxxx>      mob: +47 909 56 963
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc


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



Back to the top