Roland Haeder [Wed, 23 Sep 2015 12:44:18 +0000 (14:44 +0200)]
Continued with JPA:
- added @OneToMany annotation
- also call copyAll() to transfer properties from customer.contact to this.contact in ShopCustomer class
- added method copyAll() for Product + implemented it
- no need for length=x on integers + renamed entity name to all lower-case
- made BaseProduct to an entity
- updated jcoreee.jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 21 Sep 2015 10:04:08 +0000 (12:04 +0200)]
added missing Apache Commons library for BASE64-encoding + removed jcore-ee-logger.jar as this jar was no longer needed (is an EJB module anyway)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 16 Sep 2015 13:04:33 +0000 (15:04 +0200)]
Continued:
- added new field contactId for linking customer -> contact
- added new exceptions
- added CustomerUtils class which helps generating customer number and such
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 15 Sep 2015 13:25:32 +0000 (15:25 +0200)]
Continued:
- added checkout wrapper class and interface
- added method clear() for clearing the basket
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 14 Sep 2015 08:40:29 +0000 (10:40 +0200)]
Continued:
- added method isProductType()
- changed type of getAll() to List asthis is fine
- updated jars
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 11 Sep 2015 09:46:55 +0000 (11:46 +0200)]
updated jar + isAdded() cannot call contains() because the item instance is always new. Instead it needs to check the (unique) item id.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 8 Sep 2015 20:44:54 +0000 (22:44 +0200)]
Continued:
- had to put all classes and interfaces in one package jar-wide ... :-(
- updated jcore.jar, jcoreee.jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 7 Sep 2015 13:30:44 +0000 (15:30 +0200)]
Well, if that is EJB, it sucks somehow: Logging not allowed and a complexer class structure leaves strange errors behind:
----------------------------------------
Caused by: java.lang.NoClassDefFoundError: [Lorg/mxchange/jcore/model/contact/gender/Gender;
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.privateGetPublicMethods(Class.java:2690)
at java.lang.Class.getMethods(Class.java:1467)
at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.addAllInterfaceMethodsIn(EjbDescriptor.java:2577)
at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.getLocalRemoteBusinessMethodDescriptors(EjbDescriptor.java:2530)
... 53 more
Caused by: java.lang.ClassNotFoundException: org.mxchange.jcore.model.contact.gender.Gender
----------------------------------------
Signed-off-by:Roland Häder <roland@mxchange.org>