It seems like the OP is asking about using
   <property name="hibernate.hbm2ddl.auto">update</property>

To upgrade the schema of his database. It's generally considered bad
practice to let hibernate auto upgrade your production database, although
it's really handy during development.

This is entirely a hibernate problem though and unrelated to Tapestry.

On Thu, Mar 1, 2012 at 10:56 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Thu, 01 Mar 2012 15:33:45 -0300, CHAUVEL <morgancha...@gmail.com>
> wrote:
>
>  Hi there,
>>
>
> Hi!
>
>
>  I tried during 2 days to change my MySQL db from hibernate using
>> Tapestry5.
>> My DB is called: panaderia and the table I'm using is Usuario.
>> There are already 3 fields in this table:
>> id long
>> email varchar
>> login varchar
>> I want to add a new field  called name from hibernate/tapestry5 (without
>> modifying directly the DB)
>>
>
> I'm not sure I understand what you're asking, but have you heard about JPA
> and Hibernate's @Transient annotation or the Java transient keyword?
>
>
>  So first of all, is it possible? I'm pretty sure that it's possible.
>> Could anyone help me resolving my problem? I can change a table if I only
>> add private String name in my entity class?
>>
>
> Using Hibernate or any other ORM, you don't change table rows and columns
> directly: you change an object, than ask the framework to propagate these
> changes to the database.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to