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

Differences between generated scheme and actual DB #17

Open
RetGal opened this issue Dec 13, 2016 · 3 comments
Open

Differences between generated scheme and actual DB #17

RetGal opened this issue Dec 13, 2016 · 3 comments

Comments

@RetGal
Copy link
Contributor

RetGal commented Dec 13, 2016

There are some differences between the generated scheme and the actual (Oracle) DB.
The following fields are present in the DB but not in the generated scheme:

Table RESOURCE and RESOURCE_AUD:

  • VERSION_ID
  • PREVIOUSVERSION_ID

Table RESOURCEGROUP_AUD:

  • V

Table RELEASE_AUD:

  • V

Table TAMW_PROPERTYDESCRIPTOR_AUD (need to be booleans Number(1,0) not Number(*,1)):

  • ENCRYPT
  • NULLABLE
  • TESTING

Table TAMW_TEMPLATEDESCRIPTOR_AUD (need to be booleans Number(1,0) not Number(*,1)):

  • TESTING

Define indexes in Entities

  • we need to set the names of index on the jpa entities
@phil-pona
Copy link
Contributor

@yvespp can the two fields:

  • VERSION_ID
  • PREVIOUSVERSION_ID

be deleted?

@yvespp
Copy link
Member

yvespp commented Dec 13, 2016

Both VERSION_ID and PREVIOUSVERSION_ID are empty in TAMW_RESOURCE in on our production Database.
In TAMW_RESOURCE_AUD there are a few rows.
I don't know what they are used for, are they referenced in code?

@RetGal
Copy link
Contributor Author

RetGal commented Dec 13, 2016

These are used by Envers. The TAMW_X_AUD tables should have almost the same columns as the TAMW_X table. Differences: TAMW_X_AUD tables have the following additional columns:

  • REV
  • REVTYPE

but they should not have a V column (which is only used for optimistic locking).

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

No branches or pull requests

3 participants