reset password
Author Message
hhuang30
Posts: 40
Posted 13:31 Apr 18, 2014 |

Hi,

I set up all the environment from step1-4, and tried a sample to test, everything works great.

However, when I ran hbm2ddl.java , it shows as the following: red warning. At the same time, a "ttt.ddl" file is generated as expected under the right directory.

1. I tried other  sample Entity "Employee", the error message still there.

2. Some one had the same error message and post the solution on the internet, they suggest to modify "hibernate.cf.xml" file, but we use "persistence.xml" instead, so I modify "persistence.xml" properties tags, still got this error message

 

Last edited by hhuang30 at 13:36 Apr 18, 2014.
cysun
Posts: 2935
Posted 14:36 Apr 18, 2014 |

It's not an error message - note that it says "INFO" at the beginning of the line, so you can ignore it.

hhuang30
Posts: 40
Posted 15:30 Apr 18, 2014 |

Got it, thank you, the "red" color fooled me...

cysun
Posts: 2935
Posted 10:07 Apr 19, 2014 |
hhuang30 wrote:

Got it, thank you, the "red" color fooled me...

The red color indicates that the messages were written to stderr. Despite the name, stderr is not only used for error messages, but also other messages like log messages. By separating those messages from the regular output of the program (written to stdout), it allows users to filter them out easily.