hbmlint has been born
by Max Rydahl Andersen
http://opensource.atlassian.com/projects/hibernate/browse/HBX-95
<hibernatetool>
<...configuration/>
<hbmlint/>
</hibernatetool>
hbmlint-result.txt:
CACHE_COLLECTION_NONCACHABLE_TARGET:Entity
'org.hibernate.tool.hbmlint.Category' is referenced from the cache-enabled
collection 'org.hibernate.tool.hbmlint.Category.childCategories' without
the entity being cachable
LAZY_NOT_INSTRUMENTED:'org.hibernate.tool.hbmlint.BrokenNonLazy' has
lazy='false', but its class 'org.hibernate.tool.hbmlint.BrokenNonLazy' has
not been instrumented with cglib
LAZY_NO_DEFAULT_CONSTRUCTOR:lazy='true' set for
'org.hibernate.tool.hbmlint.BrokenLazy', but class has no default
constructor.
ID_SHADOWED:org.hibernate.tool.hbmlint.IdentifierProblem has a normal
property named 'id'. This can cause issues since HQL queries will always
interpret 'id' as the identifier and not the concrete property
SCHEMA_TABLE_MISSING:Missing table BrokenLazy
SCHEMA_TABLE_MISSING:Missing table BrokenNonLazy
SCHEMA_TABLE_MISSING:Missing table Category
SCHEMA_TABLE_MISSING:Missing table FakeNonLazy
SCHEMA_TABLE_MISSING:Missing table IdentifierProblem
SCHEMA_TABLE_MISSING:Missing table NoTable
SCHEMA_COLUMN_TYPE_MISMATCH:BadType has a wrong column type for name,
expected: CLOB but was VARCHAR in db
SCHEMA_COLUMN_MISSING:Category is missing column: name
SCHEMA_TABLE_MISSING:Missing table MissingTable
MISSING_ID_GENERATOR:Missing sequence or table: hibernate_unique_key
This is the first cut so the output is just a raw dump of the issues found
- should be beefed up and with links to an explanation of the problem
found instead of repeating it always etc.
--
--
Max Rydahl Andersen
callto://max.rydahl.andersen
Hibernate
max(a)hibernate.org
http://hibernate.org
JBoss a division of Red Hat
max.andersen(a)jboss.com
18 years, 3 months
hbm2doc diagrams (Was: Re: [hibernate-dev] Re: [Hibernate-JIRA] Closed: (HBX-775) Graphs fail for entities with Set collections)
by Mark Hobson
On 12/10/06, Max Rydahl Andersen <max.andersen(a)jboss.com> wrote:
> that would be nice to know how it works out.
It ran but with a few warnings - it appears to have problems with
inner-class syntax:
Error: ...\entitygraph.dot:30: syntax error near line 30
context: >>> uk_dot_co_dot_iizuka_dot_support_dot_Reporter$ <<<
EventContactTime [ label = "{
uk\.co\.iizuka\.support\.Reporter$EventContactTime| }",
URL="uk/co/iizuka/support/Reporter$EventContactTime.html" ]
Also looks like hbm2doc doesn't qualify inner-classes with their
outer-classnames either as javadoc does.
By the way the final entity diagram was 42780x7969px, so not too navigable :)
> Probably.
>
> I'm also interested in cleaning up hbm2doc since currently it does things
> in "interesting" ways...so any contribution that simplifies and/or make it
> more feature complete is very welcome.
Cool, we've got a few features we need that appear to be missing, so I
hope to start some patches soon.
Mark
18 years, 3 months
Lightweight bulk reading
by Paul Williams
Hi,
I'm trying to read a lot of records in from a table without the need for
Hibernate to cache them etc. Basically I'm trying to re-create a search
index from the table contents and want to process the table in a very
lightweight manner.
Can anyone suggest a good approach for doing this?
Regards,
Paul.
18 years, 3 months
Re: [Hibernate-JIRA] Closed: (HBX-775) Graphs fail for entities with Set collections
by Mark Hobson
Hi Max,
(Thought I'd take this to the dev list rather than clog up jira.)
The graphviz generation worked fine thanks. I only tried it on a
small test project, but I will be running it on a large project
shortly - I'll let you know if I encounter any problems.
On a related note, I may need to do some work on the hbm2doc templates
to include information such as entity hierarchies and inherited
properties. Does that sound like something you'd be interested in
patches for?
Cheers,
Mark
On 12/10/06, Max Rydahl Andersen (JIRA) <noreply(a)atlassian.com> wrote:
> [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-775?page=all ]
>
> Max Rydahl Andersen closed HBX-775:
> -----------------------------------
>
> Fix Version: 3.2beta9
> Resolution: Fixed
>
> thanks. not often we see bug reports for a feature I haven't yet documented how to use ;)
>
> I assume you could run the graphviz generation fairly easy then ?
>
> > Graphs fail for entities with Set collections
> > ---------------------------------------------
> >
> > Key: HBX-775
> > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-775
> > Project: Hibernate Tools
> > Type: Bug
>
> > Components: visualizations
> > Versions: 3.2beta8
> > Reporter: Mark Hobson
> > Fix For: 3.2beta9
> > Attachments: patch.txt
> >
> >
> > Looks like Sets were neglected from EntityNameFromValueVisitor. Fixed in attached patch.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
18 years, 3 months
Re: [hibernate-dev] What is the easiest and safest way to customize Hiberate for other entity mode?
by Eta Huang
Actually, SDO object is a common but special DTO object.
It has some dynamic feature similiar to XML, what's more, it has no static setter/getter method, so hibernate won't recognize it as a JavaBean object
dynamic-map mode in hibernate is good, but not enough, I'm not sure whether it can support inheritance and relationship as good as POJO.
----- Original Message -----
From: "Max Rydahl Andersen" <max.andersen(a)jboss.com>
To: "Eta Huang" <huangkai(a)primeton.com>
Sent: Wednesday, October 11, 2006 4:48 PM
Subject: Re: [hibernate-dev] What is the easiest and safest way to customize Hiberate for other entity mode?
> On Wed, 11 Oct 2006 04:10:56 +0200, Eta Huang <huangkai(a)primeton.com>
> wrote:
>
>> Hi all:
>> I'm developing SDO(Service Data Object) implementation, and when I
>> wanna persist them Hibernate is the first one came to my mind. I tried
>> it's dynamic-map mode, but that's not what i expected, I want to
>> customize Hibernate to make it full SDO support. For the sake of safety,
>> the minimal classes needed to be overrided or changed, the better.
>> Any hibernate guru can show me the right way? very thankful!
>
> What are the problems you are forseeing with SDO's ?
>
> Could you sum up the differences there are between a JavaBean and SDO ?
>
> Is SDO's completely dynamic and has no fixed structure ?
>
> --
> --
> Max Rydahl Andersen
> callto://max.rydahl.andersen
>
> Hibernate
> max(a)hibernate.org
> http://hibernate.org
>
> JBoss a division of Red Hat
> max.andersen(a)jboss.com
>
>
18 years, 3 months