dmitars opened a new pull request #456:
URL: https://github.com/apache/cayenne/pull/456


   Previous logic didn't support tables outside schemes and catalogs. So, 
loading of tables on the root level and necessary functional were added.
   
   - add trying to load tables if lists of schemes and catalogs of database 
were empty.
   - root node has null path. So was added ability to get parent object of 
current node with null path (which will be null).
   - container of tables can be null, because tables now can be placed outside 
schemes or catalogs on the root level. So, if container is null, common 
database container will be in use.
   - add check if lists of schemes and catalogs are empty but tables are 
present, in that case will be created (but not printed) scheme with all tables 
of database, which will be transferred to next methods. This scheme can't be 
found in tree, so if it's container wasn't found, but tables exist, container 
will be set on root node.
   - parent can be null in status getter, so was added check: if parent is null 
check of status will be skipped.
   - refactor some methods: replace foreach cycles with streams, remove 
duplicate code lines, move processing in some places to separate methods.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to