Hi All,
I recently installed Sculptor 1.6 and have created a simple model file as shown below.
Application
Booking {
basePackage=com.my.booking
Module
booking{
Service BookingService{
saveBooking => BookingRepository.save;
findAllBookings => BookingRepository.findAll;
findBookingById => BookingRepository.findBookingById;
}
Entity Booking{
!
optimisticLocking
!
auditable
databaseTable="BookingTb"
Long bookingId key databaseColumn="BOOK_ID"
[....]
Problem I have is that when the codes are generated a default primary key "ID" is generated instead of using my bookId as primary key..now this means that i need to delete the generated id each time and annotate bookingId with a @Id which is not very convenient , would you know how i can stop sculptor from generating this id and using the column which i have already marked as key for my primary key?...thanks
public
class Booking extends AbstractDomainObject {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "ID")
private Long id;
@Column(name = "BOOK_ID", nullable = false, unique = true)
@NotNull
private Long bookingId;
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer