In this example "database reverse" would scan all tables in the localhost:mydb database and create an entity for each table. Unlike a normal entity, though, the fields would be added to a EntityName_Roo_Reverse.aj ITD. The benefit of adding the fields into an ITD is "database reverse" can automatically remove or update the EntityName_Roo_Reverse.aj with each subsequent execution. This is very useful if the database is changing.

Activity

Just a question, because Roo use JPA... The existing database must be normalized for this to work?

If so i suggest try to implement this feature without linking to any JPA API because there are a lot of not normalized and legacy databases out there and been able to use this feature with a (hyphotetical future) Ibatis or JDBC addon would be a big plus.

Raúl Arabaolaza
added a comment - 29/Nov/09 6:40 PM Just a question, because Roo use JPA... The existing database must be normalized for this to work?
If so i suggest try to implement this feature without linking to any JPA API because there are a lot of not normalized and legacy databases out there and been able to use this feature with a (hyphotetical future) Ibatis or JDBC addon would be a big plus.

Andrew Swan
added a comment - 21/Jun/10 2:27 PM If you're stuck on Roo 1.0.2 or earlier and you need to be able to generate Roo-managed JPA entities from an existing database, here's an approach that I've used successfully: http://forum.springsource.org/showthread.php?t=90950 .

Eagerly awaiting this feature, will be incredibly useful and an essential part of Roo. "database introspect" doesn't seem to be in 1.1.0M1, will it be in the final 1.1.0 release? Could the team update us on progress please?

Dane Bezuidenhout
added a comment - 12/Jul/10 5:34 PM Eagerly awaiting this feature, will be incredibly useful and an essential part of Roo. "database introspect" doesn't seem to be in 1.1.0M1, will it be in the final 1.1.0 release? Could the team update us on progress please?

MinuteProject (http://minuteproject.wikispaces.com/) is a opensource project that already generates backend on top of Spring/hibernate/JPA/iBatis based on a DB schema.
Most recently, MinuteProject starts generating front end also: for Vaadin (on top of a spring (generated backend)) and OpenXava.
This little post to inform you that MinuteProject works on parallel solution to this Jira issue.
MinuteProject 4 Roo is a new stream of templates in MinuteProject that will available in release 0.5.

Florian Adler
added a comment - 03/Aug/10 2:59 AM MinuteProject 4 Roo:
MinuteProject ( http://minuteproject.wikispaces.com/ ) is a opensource project that already generates backend on top of Spring/hibernate/JPA/iBatis based on a DB schema.
Most recently, MinuteProject starts generating front end also: for Vaadin (on top of a spring (generated backend)) and OpenXava.
This little post to inform you that MinuteProject works on parallel solution to this Jira issue.
MinuteProject 4 Roo is a new stream of templates in MinuteProject that will available in release 0.5.
Florian.