-
Notifications
You must be signed in to change notification settings - Fork 135
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
CAY-2469 Allow validationQuery to be set in domain.xml #314
base: master
Are you sure you want to change the base?
Conversation
@mmpestorich Thanks for PR! It all makes perfect sense. However you miss a big chunk of related functionality:
Also it will be great to support another option available in If you wish I can help you to finish this PR. |
@stariy95 yup, makes sense... handling the runtime version check and adding Thanks for the feedback. |
Great! Will wait for it. |
df8f566
to
d7eb291
Compare
Changes
Multiple Supported Project VersionsNotes
Project Upgrades When creating a Project and Schema Versioning I have to admit that I am a little unclear on what the project version is actually supposed to represent. In each xsd file, there is a project version attribute and a namespace url. The namespace url is comprised of the same value that the project version attribute is set to and in turn, the schema files are contained in a directory cooresponding to the project version they are supposed to be used with. In following this line of reasoning, allowing multiple project versions means that a namespace can't necessarily be known before a project xml file is read, so these changes attempt to generate one from the project version once it is known. Then the Given these existing semantics, if there is a breaking modification in one xsd file that would require a bump to the project version, then all other unmodified schema files would necessarily have to have their versions be bumped as well (or at least duplicated, bumped and placed in a new version directory). I've tried to stay away from that, I've never been a fan of bumping versions in things that don't actually change... in doing so, I ended up with a project file that has a project version attribute set to 11 that references map files with project versions set to 10. It works but I have to admit that this is certainly not right... I propose allowing the xsd schema files to have versions independent of the project version (i.e. a given project version would indicate compatibility with a given set of schema versions - project-version 11 uses domain.xsd version 11 and modelMap.xsd version 10). But beofre I went there, I was hoping for a little feedback... Thoughts? @stariy95 Can you give me some more direction? |
d7eb291
to
f1dd950
Compare
@mmpestorich Sorry for taking so long, get caught by other projects :) After evaluating this once more, I think that our current way of upgrading project version (i.e. bumping all schemas versions at once) can be better, at least for now. |
I have not been able to figure out an easy way to setup a validationQuery using a standard cayenne project file. I would expect to be able to specify it along side the connection pool min and max connections.
But validationQuery is neither defined in the domain.xsd or used when creating the data source connection pool. This pull request that does that.
Pretty sure this all makes sense.... thoughts?
Not sure if this is related in anyway to CAY-1462, which was filed quite awhile ago.