[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] [OT]-ish Reading Annotation Data
|
- From: Roger <roger.varley@xxxxxxxxxxxxxx>
- Date: Mon, 28 Sep 2009 21:47:41 +0300
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=JKlzniXbY3kCBnDLaCVNABqXfk71NJlKvPXitUIwG7g=; b=XJO4W5gV4eGP9l6puMmtXY993IsBjrWapesP4OG/vJtp+yeTzxONumwRXBI5i+weqF JdtPJuvZcfxZNpS18sgHtAjtlkr4KDsS5wBzHRk5/6OtHh8EgY0KeZZJBYZym0K9OH11 f+ACMh24e4xO6ABDy+bQKxKVjpE877DpQ1KU4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=sowtkCSayeaqamBxfOkAo6zXJZGiiNYtK7smKhSboFeVF108Kir3e0zFw7vLuk4D+L X86yy21rx65TkbrGT5ZqgftifNU0qRdUKnT+VlY2UPi+W6fn/BR3Pouu9W5JfGgYczWm IuI8iZb0zsfX+EdnYj1x9uyg3MV8CM9e3GyTk=
- User-agent: KMail/1.12.2 (Linux/2.6.27.29-0.1-pae; KDE/4.3.1; i686; ; )
On Monday 28 September 2009 16:26:00 Tim Hollosy wrote:
> You need to use reflection, there is no built in "JPA Annotation
> Reflection Helper" provided by eclipselink, I asked once in an
> eclipselink chat and everyone thought I was nuts, but good to see I'm
> not the only one looking for something like that.
>
The only reason that I think why people would think you mad for what, to me,
seems a perfectly reasonable idea, is that people have been there, done that
and it has been shown to be A Bad Idea(Tm). I'd be interested in comments
before I attempt to go down this route.
I'm talking specifically about using entities in a web-app where I need to
validate the length of fields returned before trying to insert/update the
database. I'd also like to make the column length available to the web
framework (in this instance Struts 2) so I can set the size of the
input/display elements to match their definition where appropriate.
Regards