Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358525

Summary: Entity record cannot be generated successfully
Product: z_Archived Reporter: Zhi Zhu <zhuzhi>
Component: EDTAssignee: Joseph Vincens <jvincens>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: chenzhh, jinfahua, pharmon, svihovec, zhuzhi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Zhi Zhu CLA 2011-09-22 03:32:41 EDT
1 I need Entity record to define relationships between entity

2. Define an Entity record:
    record OrderHeader type Entity{@table{name = "Orders"}}
	order_id int {@Id};
	// Foreign key to owning Customer {@JoinColumn {name="cust_id"}};
	cust_id int{@ManyToOne};
	price float;
    end

3. Editor has inline errors and related Java class is not generated as expected.
Comment 1 Joseph Vincens CLA 2011-09-22 14:28:36 EDT
Tim had said not all functionality would be in 0.7.0, but that list was never defined. I have updated 355573 to include a list of what is supported for 0.7.0 and what is future. @ManyToMany, @ManyToOne, @OneToMany, @OneToOne, @SecondaryTables are future.
Comment 2 Zhi Zhu CLA 2011-09-22 20:30:40 EDT
But even basic Entity record definition cannot be generated, from my prospective, Entity definition without association should be generated
Comment 3 Joseph Vincens CLA 2011-10-04 08:50:39 EDT
I fixed generation so when you use an entity type there are no compile errors. 
Entity is only required for associations and associations are not supported for 070.
Comment 4 Zhi Zhu CLA 2011-10-11 20:38:23 EDT
close it