Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle support #159

Open
FlorianBruckner opened this issue May 5, 2017 · 2 comments
Open

Oracle support #159

FlorianBruckner opened this issue May 5, 2017 · 2 comments

Comments

@FlorianBruckner
Copy link

Currently it is not possible to use Oracle as database because of some issue with the mapping. Hibernate will create columns of type LONG for text columns with a length > 4000. This currently applies to GS_RESOURCE and GS_STORED_DATA.

For GS_RESOURCE, table creation will fail because only one LONG column can exist in a Table. GS_STORED_DATA is created, but queries fail because LONG cannot just be read in a SELECT.

A simple fix is to annotate the entity attributes with @lob, allowing Hibernate to create correct tables and generate correct SQL to read. Not sure if @lob will cause issues for other databases, but it shouldn't.

@Gnafu
Copy link
Contributor

Gnafu commented May 5, 2017

Hi, did you use the schema creation script as in the building instructions or did you let Hibernate generate it?

@FlorianBruckner
Copy link
Author

Thanks for the feedback - didn't notice the script, I had Hibernate create the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants