fandyvon / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

Instrumentation plugin ignores @DbName annotation #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.  Define model with @DbName annotation:

@Table("dps_user")
@DbName("DEST")
@IdGenerator("PROFILE_SEQ.nextVal")
public class DpsUser ....

2. Build project
3. ActiveJDBC models properties file contains this record: 
com.vitality.common.models.DpsUser:default

4. This causes Runtime exception: 

org.javalite.activejdbc.DBException: failed to find metamodel for class 
com.vitality.common.models.DpsUser. Are you sure that a corresponding table  
exists in DB

Instrumentation plugin should generate this record instead:
com.vitality.common.models.DpsUser:DEST

Original issue reported on code.google.com by amarkavt...@gmail.com on 23 Apr 2012 at 4:57

GoogleCodeExporter commented 9 years ago

Original comment by ipolevoy@gmail.com on 23 Apr 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Please switch to version 1.3-SNAPSHOT to get this fix

Original comment by ipolevoy@gmail.com on 23 Apr 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Thank you, Igor!

Original comment by amarkavt...@gmail.com on 23 Apr 2012 at 7:42

GoogleCodeExporter commented 9 years ago
:)

Original comment by ipolevoy@gmail.com on 23 Apr 2012 at 7:43