always i use the hbm files, the class diagram normally with hibernate should be the sameThere are DB designer tools that like ErWin or PowerDesigner that can (and should) be used to design db schemas.
that ER for he DB
regards
always i use the hbm files, the class diagram normally with hibernate should be the sameThere are DB designer tools that like ErWin or PowerDesigner that can (and should) be used to design db schemas.
that ER for he DB
regards
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
Never was in position to do it - never have used Hibernate for such kind of applications. The biggest application that I have done with Hibernate had about 10 tables (w/o Hibernate - about 300 tables).
First of all, I woul rather start from DB tables, then Java objects and only then - mappings. But in any case I would use a tool only for initial generation and not for the evolution (except validation mode of hbm2ddl).
Do not forget that data in DB have tendencies to outlive any given application (if not technology) and to be shared with many ones (even if it was not initially supposed). So DB data structures is of utmost importancy.
Regards,
Oleksandr
pretty numberThe biggest application that I have done with Hibernate had about 10 tables (w/o Hibernate - about 300 tables ).
right order, same approach i doFirst of all, I woul rather start from DB tables, then Java objects and only then - mappings.
thats right, the baseline of the rest of the layersDo not forget that data in DB have tendencies to outlive any given application (if not technology) and to be shared with many ones (even if it was not initially supposed). So DB data structures is of utmost importancy.
lower programming is powerful always, Erwin for few tables is nice, but for a lotFor me nothing is more clear and convinient as good old plain SQL scripts (with decent comments). Tools mentioned do not give clear overviewof any DB with more then, dare to say, 100 objects. Diagrams becomes ovecrowded and/or clottered.
is a wonderful hell
regards
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
For you perhaps, but you are not writing the application and documentation for yourself.
You should have many diagrams, showing different facets of the schema. One diagram representing all the tables of a non-trivial system is as usefull as reading a telephone book from cover to cover.
Documentation, first of all, shal lbe useful. To be useful it shall be concise, or nobody would read itAnd text is unbeaten in this area (save mathematical formulas, but htat another matter). And you would not believe how many peoples have started projects with me screaming for diagrams and ended with (almost) all diagrams in trash cans and (almost) all descriptions in text.
Diagrams are great for teaching purpose, for presentation to peoples that anyway would undestand nothing and for child-toy projects. In real life (from my experience) the do not pay for yourself.
But this, really, does not belong to this thread and even to this forum.
Agreed, I'm not talking about ER diagrams as only documentation but ER designer tools as documentation managers - they allow you to add your free text comments to anything you want. You can always generate commented ddls from ER tools. You can not generate meaningfull ER diagrams from ddl.
I (and my teams) have worked with them and have dropped them as absolutely unsatisfactory, their hottest proponents have completely resigned.
And yes, I can not generate meaningful ER diagrams from ddl, but I seriously doubt if such beast as "meaningful ER diagram" exists at all.
You know XP motto "code is a design". The same is applicable to the DB design.
And anyway those tools usually require some manual manipulation of generated scripts, as they do not support DBs 100% (a specially newest DB versions).
But to great extent it is matter of taste so no discussion point.