[jboss-user] [JBoss Seam] - seam-gen problem with generate-ui and repeated types

2008-02-08 Thread jcg3
I am designing from the entities out and the seam-gen generate-ui is incredibly 
helpful.  Great stuff.

I've noticed a minor thing that I have questions on.

I believe this is a bug...  anyone care to confirmation and/or tell me where to 
log the issue to be fixed in a future release?

The problem is best shown with a contrived example.  Suppose I'm building a 
model of a house and the doors in the house.  Here are two simple entities:

@Entity public class House {
  @Id private Long id;
  @OneToOne private Door frontDoor;
  @OneToOne private Door backDoor;
  ...
}

@Entity public class Door {
  @Id private Long id;
  private String description;
  ...
}

When I run seam-gen's generate-ui command, I get a HouseHome.java file that has 
the following annotations:

@In(create = true)
DoorHome doorHome;
@In(create = true)
DoorHome doorHome;

The obvious problem is that the generator assumes that both Door objects are 
the same type.  Incidentally, hibernate does hbm2ddl on this type of 
association properly (there are two columns and two foreign keys created in the 
db).

Thoughts?  Am I missing something or a custom mapping that I can provide the 
seam utility?

Thanks,
Jason


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128032#4128032

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen problem when same table is referenced two times

2007-09-26 Thread marius.oancea
Hello,
  I have a table USER and a table ADDRESS.

USER has two (important) attributes :
- localAddress
- remoteAddress

both are foreign keys to ADDRESS table.

So in ADDRESS table we will have two records for each user.

seam generate-entities perfectly generate the beans but home entities are 
wrong. Name of address home entities injected in user home have the same name.



  | create table xx.user (
  | userid varchar(10)NOT NULL  PRIMARY KEY,
  | local_address integer,
  | remote_address integer
  | ) in userspace1;
  | 
  | create table xx.ADDRESS (
  | adrid integer NOT NULL  PRIMARY KEY,
  | street varchar(200),
  | streetNo integer
  | ) in userspace1;
  | 
  | alter table xx.user add CONSTRAINT ADR1  foreign key (local_address) 
references xx.ADDRESS(adrid);
  | alter table xx.user add CONSTRAINT ADR2  foreign key (remote_address) 
references xx.ADDRESS(adrid);
  | 



  | Entity user is good:
  | @Entity
  | @Table(name = USER, schema = xx)
  | public class User implements java.io.Serializable {
  | 
  | private String userid;
  | private Address addressByLocalAddress; // correct, different names
  | private Address addressByRemoteAddress; // correct, different names
  | 


but in UserHome we have:

  | @Name(userHome)
  | public class UserHome extends EntityHomeUser {
  | 
  | @In(create = true)
  | AddressHome addressHome; //- WRONG, SAME NAME
  | @In(create = true)
  | AddressHome addressHome; //- WRONG, SAME NAME
  | 


I'm using SEAM 2.0 BETA (Hibernate Tools 3.2.0.b9) with ant.

Any clue?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=403#403

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam gen problem

2007-06-05 Thread carlos.abreu
Hy, i tried to use the seam gen shell script in my Ubuntu O.S and i had the 
following exception:

[EMAIL PROTECTED]:/opt/jboss-seam-1.2.1.GA# sh seam generate-entities
Buildfile: build.xml

validate-workspace:

validate-project:

generate-entities:
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)

BUILD FAILED
java.lang.NoClassDefFoundError: net.sf.cglib.core.DebuggingClassWriter$1

Does anyone know what is happening?? 

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051365#4051365

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051365
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam Gen Problem

2007-01-23 Thread kasim

This is probably something obvious but i cant figure it out.

When i run the ./seam generate-entities

i get No driver found error. i was assuming it was going off the one we defined 
in the setup. which i verified is there

Total time: 1 second
  | apple-nusairat:/usr/local/java/packages/jboss-seam-1.1.1.GA online$ ./seam 
generate-entities
  | Buildfile: build.xml
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: Hibernate 3.2 cr4
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Using Hibernate built-in connection pool (not for 
production use!)
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Hibernate connection pool size: 20
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: autocommit mode: false
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: 
jdbc:mysql://localhost
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: connection properties: {user=root, password=}
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] WARNING: Could not obtain connection metadata
  | [hibernate] java.sql.SQLException: No suitable driver
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:545)
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:140)
  | [hibernate] at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | [hibernate] at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
  | [hibernate] at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929)
  | [hibernate] at 
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38)
  | [hibernate] at 
org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(JDBCConfigurationTask.java:82)
  | [hibernate] at 
org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:55)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:298)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:314)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
  | [hibernate] at 
org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter(Hbm2JavaExporterTask.java:34)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182)
  | [hibernate] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
  | [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
  | [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | [hibernate] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | [hibernate] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
  | [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.dialect.Dialect init
  | [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.transaction.TransactionFactoryFactory 

[jboss-user] [JBoss Seam] - Seam Gen problem with ejb-jar.xml

2007-01-03 Thread james_027
Hi,

I am new with Seam. Iam trying to create a new project with seam gen. After 
doing the seam setup, seam new-project, and seam explode. I cannot open the web 
page.

This is one of the error I found during the startup of JBOSS AS

ejb-jar.xml must either obey the right  xml schema or define a valid DOCTYPE!

I am now stock and can't proceed. Please help.

James



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997466#3997466

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997466
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user