Hi Tim,

thanks a lot for your suggestions. I wrote this article a while ago and 
certainly there is room for improvement in both the content and the tone. As I 
am non native English speaker it is sometimes hard to judge how particular 
phrases are perceived by others. 

But then I must admit that it was certainly my intention to be a little 
provocative as I wanted to make clear that we offer a entirely different 
concept and that there are fundamental problems inherit in OR-Mapping. There 
are many other sources and articles which discuss this subject, like e.g. this 
one:
http://www.codinghorror.com/blog/archives/000621.html

Please let me know which paragraphs for phrases put you off most and I will 
rewrite them. Any suggestions are welcome.

As far as your other question is concerned:
In Empire-db the column object does not only contain database related 
properties but might as well hold other additional information 
(meta-information) that can then be used by the presentation layer or by other 
pieces of (possibly generic) code.
Especially for ui-components there is a property called controlType that 
indicates what kind of control should be used for this column - independent 
from the data type. And depending on the type of control the column may then 
have other properties that are useful for ui-definition or generic code like 
e.g. a list of valid values, a min- max value etc.
In the struts2 extensions there are a number of predefined control types but 
you may easily create your own type. The predefines types are: "text", 
"select", "checkbox", "phone", "radio", "textarea", "email", "hlink" and 
"password". In order to create a new one, create a class that extends 
"org.apache.empire.struts2.jsp.controls.InputControl" and register it like 
this: 
InputControlManager.registerControl("mycontrol", new MyInputControl())

Then assign the control type to the corresponding column like this:

public final DBTableColumn EMAIL;

public Employees(DBDatabase db)
{
    super("EMPLOYEES", db);
    // ID
    ...
    EMAIL= addColumn("EMAIL", DataType.TEXT, 80, DataMode.Nullable);
    ...
    EMAIL.setControlType("email");


I hope this answer was of help for you.
Best regards

Rainer



Tim Colson wrote:
> from: Tim Colson [mailto:[email protected]]
> to: [email protected]
> re: User/Dev lists - activity and search
> 
> I'm new here. ;-)
> 
> I saw the discussion about building the community for Empire DB, but
> browsing the two lists is arduous. Is there a *searchable* archive and
> or a digest/summary of what's been happening over the years for newbies
> to get up to speed?
> 
> RE: building community, I stumbled on Empire DB due to a search on
> "Hibernate and JPA".
> 
> That landed me on the "What's wrong with..." article, which although
> informative, direct, and thought provoking, the tone put me off a bit
> and maybe it's having a similar effect on others. Maybe a title change
> to "Empire DB advantages over traditional Hibernate and JPA" and a few
> edits to the tone of the article might get more readers to think about
> Empire DB?
> 
> 
> Cheers,
> -Tim
> 

Reply via email to