Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Simplifying Ebean Internals ... by Removing MapBean fuctionality (and DB meta data use)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rob bygrave  
View profile  
 More options May 17 2009, 3:48 am
From: rob bygrave <rbygr...@yahoo.com>
Date: Sun, 17 May 2009 00:48:09 -0700 (PDT)
Local: Sun, May 17 2009 3:48 am
Subject: Re: Simplifying Ebean Internals ... by Removing MapBean fuctionality (and DB meta data use)

> and it seems your doing this all for DDL generation

Yes, that's pretty much true. A big benefit (side effect) is that the DDL generation can lead to easier testing (especially when linked to automatic loading of seed data). For example, the test suite for Ebean at the moment is based on DB specific scripts which is not great.  DDL generation would mean the test suite for Ebean (and any application using Ebean) could be automated for numerous DB's. For testing purposes this could be a big win and this is the biggest motivation for me to support DDL generation.

> and I have never generated my schema from my java beans.

Neither have I actually. I personally have always favoured spending some time designing a DB with a DB design tool (which was built for the purpose) and personally would perfer to use such a DB centric design tool to generate the DDL rather than beans with annotations (which are not going to include views, triggers, stored procedures, tablespaces, extra indexes etc, common data types/lengths etc).

I was expecting a JPA/ERD orientated design tool to exist by now which would be "the source" for generating both the DDL and annotated java entity beans. I have not seen such a tool yet but perhaps one exists?  If it did then I suspect it would have a number of benefits over DDL generation from annotated beans.

However, I believe there are Agile orientated developers expecting/wanting DDL generation and especially want it for quick development and automated testing purposes...  as well as a starting point for production quality DDL. The generated DDL could be sufficient for some DB's (smaller, no tablespaces, only used for automated testing etc) .

> Put another way the Relational Database rules the world no mater what the OO purists think

My slightly different spin on this would be "Don't fight the Database". The harder you fight the natural characteristics of the Relational Database design you are working with... the more pain you are going to have. Generally you are going to have to live with the DB design longer than the ORM/application. If the ORM generates a ORM specific DB design that could be a problem if later you want to swap out the application with another technology.

> one of the reasons I am attracted to EBean, it seems to be

more DB centric instead of Object centric like Hibernate.  Especially
in the Query language.  No Restrictions and Projections and Criteria.
Good ol reliable Queries.

Well I agree in that I think Ebean is more DB centric and I think it will continue to be more DB centric.

Another way to look at this DB meta data issue is... Ebean currently hides the DB meta data it finds. Instead some of that meta data should possibly be on the entity beans (specifically the @NotNull and @Length annotations) with the benefit of supporting bean validation frameworks. Once you do this the value of the "hidden" DB meta data Ebean uses is reduced (to mostly automatic foreign key determination).

It is a bit more tricky with MapBean's which rely on the DB meta data. I'm not sure if they can be used without the DB meta data being available.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.