Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
markmneimneh
14,133 PointsVersioning does not work with actual DB (ORACLE)
Hi
I am replicating this video series using ORACLE DB and actual table in the ORACLE DB.
It all works fine, until I add
@Version
private Long version;
to the
@MappedSuperclass public abstract class BaseEntity {
When you do this, the Build will fail, because the app think that the ORACLE Table is missing a table field called Version.
Has this been tested against real DB? other than H2?
Thanks
1 Answer
markmneimneh
14,133 PointsNever Mind
I think I know why it is working here ... in the video ... the H2 is creating the table on the fly ... and hence it is adding the Version Column/Field to the table. therefore, the build with H2 will work.
However, this won't work in the real world unless you are authorized to alter the table design in your db. Unfortunately, Not many of us have this luxury